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/03/06 17:37:17 UTC
DO NOT REPLY [Bug 6925] New: -
contents not escaped
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=6925>.
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=6925
<xsl:comment> contents not escaped
Summary: <xsl:comment> contents not escaped
Product: XalanJ2
Version: CurrentCVS
Platform: PC
URL: http://www.w3.org/TR/xslt#section-Creating-Comments
OS/Version: Linux
Status: NEW
Severity: Major
Priority: Other
Component: org.apache.xalan.xsltc
AssignedTo: xalan-dev@xml.apache.org
ReportedBy: ville.skytta@iki.fi
The contents of <xsl:comment> are not escaped, see
http://www.w3.org/TR/xslt#section-Creating-Comments
This may result in malformed XML. I'll attach a patch for this
(which also comments out a couple of private methods obsoleted
by the fix).
--- sample xsl ---
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/">
<xsl:comment>-- A - test --- comment -</xsl:comment>
</xsl:template>
</xsl:stylesheet>