XSLT <xsl:call-template>
❮完全なXSLT要素リファレンス
定義と使用法
<xsl:call-template>要素は名前付きテンプレートを呼び出します。
構文
<xsl:call-template name="templatename">
<!-- Content:xsl:with-param* -->
</xsl:call-template>
属性
Attribute | Value | Description |
---|---|---|
name | templatename | Required. Specifies the name of the template to be called |
例1
プロセッサが車の要素を見つけたら、「description」という名前のテンプレートを呼び出します。
<xsl:template match="car">
<xsl:call-template name="description"/>
</xsl:template>
❮完全なXSLT要素リファレンス