xsl-list
[Top] [All Lists]

Re: [xsl] Copying all comments [xsltproc 1.0]

2010-10-04 07:19:19
The subject line is misleading as you don't want to copy the commennts 
that would be:


Yeah, my apology. 


If you are sure the commented code is well formed, and you are in a 
situation that you can use d-o-e then you can use

<xsl:for-each select="//comment()">
<xsl:value-of disable-output-escaping="yes" select="."/>
</xsl:for-each>

Perfect and yes my commented code will be well formed. Forgot about 
@disable-output-escaping. Thanks for reminding David.
 



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--