xsl:comment

only for RuBoard

xsl:comment

xsl:comment generates a comment in the output.

Attributes

None.

Example

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


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net