XSLT <xsl:call-template> Element

Definition and Usage

The <xsl:call-template> element can call a specified template.

Syntax

<xsl:call-template name="templatename">
  <!-- Content:xsl:with-param* -->
</xsl:call-template>

Attribute

Attribute Value Description
name templatename Required. Specifies the name of the template to be called.

Instance

Example 1

When the processor finds a car element, it calls the template named "description":

<xsl:template match="car">
  <xsl:call-template name="description"/>
</xsl:template>