Element <xsl:call-template> w XSLT
Definicja i użycie
Element <xsl:call-template> może wywołać określony szablon.
Gramatyka
<xsl:call-template name="templatename"> <!-- Content:xsl:with-param* --> </xsl:call-template>
Atrybut
Atrybut | Wartość | Opis |
---|---|---|
name | templatename | Wymagane. Określa nazwę szablonu wywoływanego. |
Przykład
Przykład 1
Kiedy procesor znajduje element car, wywołuje szablon o nazwie "description":
<xsl:template match="car"> <xsl:call-template name="description"/> </xsl:template>