XSLT <xsl: call-template> element
Definition and Usage
<Xsl: call-template> element can be called a named template.
grammar
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
<!-- Content:xsl:with-param* -->
</xsl:call-template>
Attributes
属性 | 值 | 描述 |
---|---|---|
name | templatename | 必需。规定被调用的模板名称。 |
Example 1
When the handler found a car element, a call to a "description" of the template:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
<xsl:call-template name="description"/>
</xsl:template>
Complete XSLT Element Reference Manual