This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]