W3cubDocs

/XSLT & XPath

<xsl:comment>

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

The <xsl:comment> element writes a comment to the output document. It must include only text.

Syntax

<xsl:comment>
  TEMPLATE
</xsl:comment>

Required Attributes

None.

Optional Attributes

None.

Type

Instruction, appears within a template.

Defined

XSLT, section 7.4.

Gecko support

Supported.

© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XSLT/Element/comment