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:40:21 UTC

DO NOT REPLY [Bug 10572] - 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>.





------- Additional Comments From David_N_Bertoni@lotus.com  2002-07-09 00:40 -------
Can you please provide a small example which reproduces the problem?  Also, 
please make sure you understand how xsl:comment works.  You cannot use the 
content of xsl:comment to generate anything other than text nodes, so you may 
be trying to do something that is forbidden.  In particular, from the XSLT 
recommendation:

http://www.w3.org/TR/xslt#section-Creating-Comments

"It is an error if instantiating the content of xsl:comment creates nodes other 
than text nodes. An XSLT processor may signal the error; if it does not signal 
the error, it must recover by ignoring the offending nodes together with their 
content."

Xalan will recover from this error.  So, if your variable contains a node set 
with nodes other than text nodes, those nodes and their content will be ignored.

In particular, you cannot use xsl:comment to produce "markup" which 
is "commented out," i.e.:

<!-- <foo>text<bar/></foo> -->

This not really markup, and cannot be generated by xsl:comment, except through 
hacks such as value-of and disable-output-escaping.  And even then, you cannot 
produce it by copying nodes from the source tree.

Please verify that what you're trying to do is legal, and if it is, please 
attach a small sample that reproduces this problem.  Otherwise, please mark the 
bug as invalid.