XSLT <xsl:call-template>
XSLT <xsl:call-template>
The <xsl:call-template>
element calls a named template.
Syntax
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
Attributes
Attribute | Value | Required/Optional | Description |
---|---|---|---|
name | templatename | Required | Specifies the name of the template to be called |
Example
Call a template named "description" when the processor finds a car element:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>