only for RuBoard |
xsl:comment generates a comment in the output.
None.
Consider this XML instance document, sample.xml :
<?xml version="1.0" encoding="utf-8" ?> <foo> <bar>Testing</bar> </foo>
The following stylesheet, sample.xslt , is applied to the sample XML document.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:comment> <xsl:value-of select="foo/bar"/> </xsl:comment> </xsl:template> </xsl:stylesheet>
This produces the following result:
<?xml version="1.0" encoding="UTF-16"?><!--Testing-->
only for RuBoard |