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 Lambrechts tom <to...@axelera.net> on 2003/04/08 17:48:58 UTC

cdata-section-elements doesn't work in xalan 2.4 (and previous)

The attribute cdata-section-elements  has no effect in xalan using 2.4.0 in
java running on sun jdk1.4.2.

Xslt:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:output cdata-section-elements="output"/>
<xsl:template match="/msg">
     <output>
          <xsl:value-of select="foo"/>
     </output>
</xsl:template>
</xsl:stylesheet>

xml:
<msg>
     <foo>blabla</foo>
</msg>

output xmlspy:
<?xml version="1.0" encoding="UTF-8"?><output><![CDATA[blabla]]></output>

output xalan 2.4.0:
<?xml version="1.0"?><output> blabla </output>