Next / Previous / Contents / Shipman's homepage

11.3. xsl:comment: Output a comment

To write a comment to the output, use this element. The content of the element becomes the content of the comment. There are no attributes. For example, this element in a template:

    <xsl:comment>Do not edit this file; it is generated
      automatically by an XSLT script.</xsl:comment>

would generate this comment in the output:

    <!--Do not edit this file; it is generated
      automatically by an XSLT script.-->