You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2004/02/06 23:39:06 UTC
DO NOT REPLY [Bug 26743] New: -
XML element inside of element - different results for Xalan-J and XSLTC
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=26743>.
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=26743
XML element inside of <xsl:text> element - different results for Xalan-J and XSLTC
Summary: XML element inside of <xsl:text> element - different
results for Xalan-J and XSLTC
Product: XalanJ2
Version: CurrentCVS
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Xalan-Xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: minchau@ca.ibm.com
This stylesheet:
-----------------------------------------
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" />
<xsl:template match="/">
<doc><xsl:text>abc<bad/>def</xsl:text></doc>
</xsl:template>
</xsl:stylesheet>
-----------------------------------------
Produces this output with XSLTC:
-----------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<doc>abcdef<bad/></doc>
-----------------------------------------
But Xalan-J correctly throws an exception,
javax.xml.transform.TransformerException:
bad is not allowed in this position in the stylesheet!