XML & XSL - xsl:comment


Creates a comment into the browser output.

Syntax

<xsl:comment>

Attributes

Parent Elements

Child Elements

Purpose

Any text generated by the children of xsl:comment appears between the HTML comment characters <!-- and -->, opening and closing commented section respectively. The example below will write the INPUT tag to the HTML enclosed within comments. Thus the INPUT tag will not appear in the browser.

<xsl:comment>
	<xsl:element name="INPUT">
		<xsl:attribute name="VALUE"><xsl:value-of select="name"/></xsl:attribute>
		<xsl:attribute name="SIZE">35</xsl:attribute>
	</xsl:element>
</xsl:comment>

HTML Equivalent

<!-- <INPUT VALUE="name" SIZE="35"> -->