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=15481>.
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=15481

xsltc does not escape attributes 

           Summary: xsltc does not escape attributes
           Product: XalanJ2
           Version: 2.4Dx
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Xalan-Xsltc
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


When xalan adds atribute it changes " to &quot;  , & to &amp. But xsltc does not.
So I get wrong output, when using xsltc.

Example:
xml:
<a><![CDATA["&gt;&]]></a>

xsl:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; version="1.0">
    <xsl:output method='html' indent='yes'/>

    <xsl:template match='/'>
         <input value="{a}"/>
    </xsl:template>
</xsl:stylesheet>

xalan result:
<input value="&quot;&amp;gt;&amp;">

xsltc result:
<input value=""&gt;&">

I used xalan 2.4.1

Reply via email to