XSLT <xsl:call-template>
❮Volledige XSLT-elementreferentie
Definitie en gebruik
Het element <xsl:call-template> roept een benoemde sjabloon aan.
Syntaxis
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
attributen
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
voorbeeld 1
Roep een sjabloon met de naam "beschrijving" aan wanneer de processor een auto-element vindt:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮Volledige XSLT-elementreferentie