xml-xalan-j-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Devlin, Kurt" <Kurt.Dev...@westgroup.com>
Subject cdata-section-elements strangeness
Date Wed, 14 Aug 2002 19:58:23 GMT
A co-worker has come across some strangeness with generating CDATA wrappers
around some elements (see sample below). Basically, two wrappers are being
generated with Xalan, where Saxon only generates one. Are there any ill
effects due to this double wrapper (more than being visually unappealing)?
Is there a reason Xalan does it this way?


<!-- Input -->

<!-- XSL -->
<xsl:stylesheet version="1.0"
	<xsl:output method="xml" cdata-section-elements="combined" />
	<xsl:template match="/">
		<xsl:apply-templates />
	<xsl:template match="root">
			<xsl:value-of select="one" />
			<xsl:value-of select="two" />

<!-- Desired Output (and Saxon Output) -->

<!-- Xalan Output -->

View raw message