XML & XSL - xsl:comment

Creates a comment into the browser output.




Parent Elements

Child Elements


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:element name="INPUT">
		<xsl:attribute name="VALUE"><xsl:value-of select="name"/></xsl:attribute>
		<xsl:attribute name="SIZE">35</xsl:attribute>

HTML Equivalent

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