element <xsl:call-template> w XSLT
definicja i użycie
<xsl:call-template> element może wywołać określony szablon.
gramatyka
<xsl:call-template name="templatename"> <!-- Content:xsl:with-param* --> </xsl:call-template>
attribut
attribut | wartość | opis |
---|---|---|
name | templatename | Wymagane. Określa nazwę szablonu, który ma być wywołany. |
Przykład
Przykład 1
Kiedy procesor znajdzie element car, wywoła szablon o nazwie "description":
<xsl:template match="car"> <xsl:call-template name="description"/> </xsl:template>