[xsl] Re: What's wrong with this copy-of?

Subject: [xsl] Re: What's wrong with this copy-of?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 3 Oct 2001 04:56:22 -0700 (PDT)
Comment nodes can have only text-node children.

To accomplish what you wanted (I know this is ugly...) use:

<xsl:value-of select="'&lt;!-- '" 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


Current Thread