|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Retaining Comments
Try this:
<xsl:template match="comment()">
<xsl:copy-of select="." />
</xsl:template>And replace comment() by processing-instruction() if you want to retain processing instructions.. Regards, Geert Fraser Goffin wrote: I note that when I create (copy) an XSLT from another XSLT and the source contains comments, these are not copied across. I undestand that comments may not be significant to an XSLT processor but does anyone know whether it is in fact possible to copy them to the output.
Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 www.daidalos.nl De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








