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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to