This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: What's wrong with this copy-of?
- To: xsl-list at lists dot mulberrytech dot com
- Subject: [xsl] Re: What's wrong with this copy-of?
- From: Dimitre Novatchev <dnovatchev at yahoo dot com>
- Date: Wed, 3 Oct 2001 04:56:22 -0700 (PDT)
- Reply-To: xsl-list at lists dot mulberrytech dot com
Comment nodes can have only text-node children.
To accomplish what you wanted (I know this is ugly...) use:
<xsl:value-of select="'<!-- '" disable-output-escaping="yes"/>
<xsl:copy-of select="/page/foo"/>
<xsl:value-of select="' -->'" disable-output-escaping="yes"/>
Cheers,
Dimitre Novatchev.
Jorge Maestre wrote:
[snip]
<body>BODY <xsl:comment>
<xsl:copy-of select="/page/foo"/>
</xsl:comment>
</body>
__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list