xsl:template

xsl:template

The <xsl:template> element defines an output producing template. This element must have either the match attribute or the name attribute set.

Syntax

<xsl:template
	match=PATTERN
	name=NAME
	mode=NAME
	priority=NUMBER>
	<xsl:param> [optional]
	TEMPLATE
</xsl:template>

Required Attributes

None.

Optional Attributes

match
Specifies a pattern that determines the elements for which this template should be used. It is a required attribute if there is no name attribute.
name
Specifies a name for this template, by which it can be invoked through the <xsl:call-template> element.
mode
Specifies a particular mode for this template, which can be matched