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 2002/12/18 13:36:07 UTC

DO NOT REPLY [Bug 15481] New: - xsltc does not escape attributes

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: xalan-dev@xml.apache.org
        ReportedBy: zhdnv@icqmail.com


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