<xsl:template>

A <xsl:template> constructs a portion of the result tree. It can be called either automatically by the XSLT processor or procedurally by other template(s) in the stylesheet.

<xsl:template
  match = pattern 
  name = qname 
  priority = number 
  mode = qname>
  <!-- Content: (xsl:param*, template) -->
</xsl:template>
match

The match pattern for this template

name

The name of this template

priority

A priority for conflict resolution

mode

The mode in which this template occurs

Either a match pattern or a name must be specified.