XSLT <xsl:call-template>-Element

Definition und Verwendung

Das <xsl:call-template>-Element kann ein bestimmtes Template aufrufen.

Grammatik

<xsl:call-template name="templatename">
  <!-- Inhalt:xsl:with-param* -->
</xsl:call-template>

Eigenschaft

Eigenschaft Wert Beschreibung
name templatename Required. Specifies the name of the template to be called.

Instance

Example 1

When the processor finds a car element, it calls the template named "description":

<xsl:template match="car">
  <xsl:call-template name="description"/>
</xsl:template>