cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: removing the pi
Date Fri, 23 Jul 2004 14:54:10 GMT
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


Mime
View raw message