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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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!

Reply via email to