You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lionel Crine <cr...@4dconcept.fr> on 2004/07/23 13:34:04 UTC
removing the pi
Hi all,
I'like to remove the pi (<?pi ?>) in my documents with SAX. Is it possible ?
Otherwise, How can I do that ?
Thanks.
--
Lionel CRINE
Ingénieur Systèmes Documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: removing the pi
Posted by Lionel Crine <cr...@4dconcept.fr>.
Man, why didn't i think about that !!!
Shame on me.
Upayavira wrote:
> Lionel Crine wrote:
>
>> This is what I did but I thought already exist.
>>
> All you really need is an XSLT with a single match:
>
> <xsl:match pattern="/|*|@*|text()|comment()">
> <xsl:copy>
> <xsl:apply-templates select="*|@*|text()|comment()"/>
> </xsl:copy>
> </xsl:match>
>
> It is an 'identity' transform, but it excludes the
> processing-instruction() test, which means they won't get into the output.
>
> Regards, Upayavira
>
>>
>>
>> Leszek Gawron wrote:
>>
>>> Lionel Crine wrote:
>>>
>>>> Hi all,
>>>>
>>>> I'like to remove the pi (<?pi ?>) in my documents with SAX. Is it
>>>> possible ?
>>>>
>>>> Otherwise, How can I do that ?
>>>>
>>>>
>>>> Thanks.
>>>>
>>> I think it should be possible via a custom transformer that spits
>>> everything it gets except for PI
>>>
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
--
Lionel CRINE
Ingénieur Systèmes Documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: removing the pi
Posted by Upayavira <uv...@upaya.co.uk>.
Lionel Crine wrote:
> This is what I did but I thought already exist.
>
All you really need is an XSLT with a single match:
<xsl:match pattern="/|*|@*|text()|comment()">
<xsl:copy>
<xsl:apply-templates select="*|@*|text()|comment()"/>
</xsl:copy>
</xsl:match>
It is an 'identity' transform, but it excludes the
processing-instruction() test, which means they won't get into the output.
Regards, Upayavira
>
>
> Leszek Gawron wrote:
>
>> Lionel Crine wrote:
>>
>>> Hi all,
>>>
>>> I'like to remove the pi (<?pi ?>) in my documents with SAX. Is it
>>> possible ?
>>>
>>> Otherwise, How can I do that ?
>>>
>>>
>>> Thanks.
>>>
>> I think it should be possible via a custom transformer that spits
>> everything it gets except for PI
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: removing the pi
Posted by Lionel Crine <cr...@4dconcept.fr>.
This is what I did but I thought already exist.
Leszek Gawron wrote:
> Lionel Crine wrote:
>
>> Hi all,
>>
>> I'like to remove the pi (<?pi ?>) in my documents with SAX. Is it
>> possible ?
>>
>> Otherwise, How can I do that ?
>>
>>
>> Thanks.
>>
> I think it should be possible via a custom transformer that spits
> everything it gets except for PI
>
--
Lionel CRINE
Ingénieur Systèmes Documentaires
Société : 4DConcept
22 rue Etienne de Jouy 78353 JOUY EN JOSAS
Tel : 01.34.58.70.70 Fax : 01.39.46.06.90
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: removing the pi
Posted by Leszek Gawron <lg...@mobilebox.pl>.
Lionel Crine wrote:
> Hi all,
>
> I'like to remove the pi (<?pi ?>) in my documents with SAX. Is it
> possible ?
>
> Otherwise, How can I do that ?
>
>
> Thanks.
>
I think it should be possible via a custom transformer that spits everything
it gets except for PI
--
Leszek Gawron lgawron@mobilebox.pl
Project Manager MobileBox sp. z o.o.
+48 (61) 855 06 67 http://www.mobilebox.pl
mobile: +48 (501) 720 812 fax: +48 (61) 853 29 65
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org