XSLT <xsl:szablon połączeń>
❮ Pełne odniesienie do elementu XSLT
Definicja i użycie
Element <xsl:call-template> wywołuje nazwany szablon.
Składnia
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
Atrybuty
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
Przykład 1
Wywołaj szablon o nazwie „opis”, gdy procesor znajdzie element samochodu:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮ Pełne odniesienie do elementu XSLT