You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by ro...@kbc.be on 2002/10/21 11:55:40 UTC

CDATA SAX events don't work when using transformation chaining!

I am using a transformation chain that generates SAX events to a
ContentHandler.

The XSLT script outputs an XML structure within a CDATA element as follows:
<Data>
     <xsl:text disable-output-escaping="yes">&lt;!--
     </xsl:text>
     <xsl:copy-of select="."/>
     <xsl:text disable-output-escaping="yes">--&gt;
     </xsl:text>
</Data>

The problem is that Xalan ignores the <![CDATA[ element and just raises a
'characters(ch[],int,int)' event for it and afterwards raises events for
each element in the XML that the CDATA element contains.

This means that <![CDATA[ ]]> is useless, since the data within it is just
parsed like the rest of the document. It works fine when I'm just using
Xerces to parse an XML containing CDATA elements. The data within the CDATA
element is nicely ignored and raised as 'characters(ch[],int,int)' event.


Is this a bug or am I doing something wrong???



Thanks,
Robbie



____________________________________________________
DISCLAIMER

This e-mail and any attached files are confidential and may be legally privileged. If you are not the addressee, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you have received this transmission in error please notify KBC immediately and then delete this e-mail.
KBC does not accept liability for the correct and complete transmission of the information, nor for any delay or interruption of the transmission, nor for damages arising from the use of or reliance on the information.
All e-mail messages addressed to, received or sent by KBC or KBC employees are deemed to be professional in nature. Accordingly, the sender or recipient of these messages agrees that they may be read by other KBC employees than the official recipient or sender in order to ensure the continuity of work-related activities and allow supervision thereof.