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/07/09 02:12:32 UTC

DO NOT REPLY [Bug 10572] New: - not working in .

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

<xsl:copy-of> not working in <xsl:comment>.

           Summary: <xsl:copy-of> not working in <xsl:comment>.
           Product: XalanC
           Version: 1.3.x
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: XalanC
        AssignedTo: xalan-dev@xml.apache.org
        ReportedBy: eknoll@sf-inc.com


Added a <xsl:comment> block around a set of <xsl:value-of...> and
<xsl:copy-of...> elements.  The <xsl:copy-of...> was outputting the
value/contents of a variable, but when I put it inside of a <xsl:comment> block,
a comment was put into the output stream, but not the contents of the variable;
without the comment block I get output.

<xsl:copy-of select="$variable" />       <!-- Worked. -->

<xsl:comment>
   <xsl:copy-of select="$variable" />       <!-- Did not work. -->
</xsl:comment>