DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13966>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13966 <xsl:output> cdata-section-elements behavior Summary: <xsl:output> cdata-section-elements behavior Product: XalanJ2 Version: 2.4 Platform: PC OS/Version: Windows NT/2K Status: NEW Severity: Minor Priority: Other Component: Xalan AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Behavior: When specifying a cdata-section-elements attribute in the <xsl:output> tag. The output multiple cdata sections are created depending on the input xml tag text. Specifics: With the use of an apostrophe and whitespace in the input xml multiple cdata sections are generated in the output. To reproduce: Use the commandline util: java org.apache.xalan.xslt.Process -IN %PCURRENT%inputData.xml -XSL %PCURRENT% translate.xsl -OUT %PCURRENT%XalanOut.xml" inputData.xml: <?xml version="1.0" encoding="UTF-8"?> <!--Truhann van der Poel 2002-10-24 --> <a> <b>'Output&1'</b> <b>Output&2' <c>Hello ma</c> </b> <c>'Outpu't&3</c> </a> translate.xsl: <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:output method="xml" cdata-section-elements="xx"/> <xsl:template match="a"> <Root> <xsl:apply-templates/> </Root> </xsl:template> <xsl:template match="b"> <bMatched> <xsl:apply-templates/> </bMatched> </xsl:template> <xsl:template match="c"> <xx> <xsl:apply-templates/> </xx> </xsl:template> </xsl:stylesheet> XalanOut.xml: <?xml version="1.0" encoding="UTF-8"?> <Root> <bMatched>'Output&1'</bMatched> <bMatched>Output&2' <xx><![CDATA[Hello ]]><![CDATA[ma]]></xx> </bMatched> <xx><![CDATA['Outpu't&3]]></xx> </Root>
