Skip to content

XSLT <xsl:comment>

How to use the <xsl:comment> element in XSLT to insert comment nodes into the result tree for documentation or conditional processing.

XSLT <xsl:comment>

The <xsl:comment> element is used to create a comment node in the result tree.

Syntax

<xsl:comment>  
	<!-- Content:template -->  
</xsl:comment>

Attributes

The <xsl:comment> element has no attributes.

Example

<xsl:comment>This is a comment!</xsl:comment>
Navigation