You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "Voytenko, Dimitry" <DV...@SECTORBASE.COM> on 2000/11/15 03:54:52 UTC
J2 BUG with disable-output-escaping
Hi,
Following stylesheet gives wrong results on Xalan J2 and right results on
Xalan J1:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
method = "html"
indent = "yes"
/>
<xsl:template match="/">
<H1><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></H1>
<H1> </H1>
</xsl:template>
</xsl:stylesheet>
Xalan J1 gives (right results):
<H1> </H1>
<H1> </H1>
Xalan J2 gives (wrong results):
<H1><?javax.xml.transform.disable-output-escaping>&nbsp;<?javax.xml.tran
sform.disable-output-escaping></H1>
<H1> </H1>
Thank you
Dmitry E. Voytenko