Back to Content

Index

files/en-us/web/xml/xslt/reference/element/comment/index.md

latest342 B
Original Source

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

Syntax

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

Required Attributes

None.

Optional Attributes

None.

Type

Instruction, appears within a template.

Specifications

XSLT, section 7.4.

Gecko support

Supported.