XSLT <xsl:call-template>
❮ Referência Completa do Elemento XSLT
Definição e uso
O elemento <xsl:call-template> chama um template nomeado.
Sintaxe
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
Atributos
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
Exemplo 1
Chame um template chamado "description" quando o processador encontrar um elemento car:
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮ Referência Completa do Elemento XSLT