Movatterモバイル変換


[0]ホーム

URL:


codecamp

XSLT <xsl:call-template> 元素

XSLT<xsl:call-template> 元素

XSLT <xsl:call-template> 元素根据名称调用模板。


XSLT 元素参考手册 完整的 XSLT 元素参考手册

定义和用法

<xsl:call-template> 元素可调用一个指定的模板。


语法

<xsl:call-template name="templatename">

<!-- Content:xsl:with-param* -->

</xsl:call-template>

属性

属性描述
nametemplatename必需。规定被调用的模板名称。

实例 1

当处理程序找到一个 car 元素时,调用名为 "description" 的模板:

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

XSLT 元素参考手册 完整的 XSLT 元素参考手册
XSLT <xsl:attribute-set> 元素
XSLT <xsl:choose> 元素
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

XSLT 教程

XSLT 高级

XSLT 参考手册

XSLT 元素参考手册

关闭

MIP.setData({'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false},'pageFontSize' : getCookie('pageFontSize') || 20});MIP.watch('pageTheme', function(newValue){setCookie('pageTheme', JSON.stringify(newValue))});MIP.watch('pageFontSize', function(newValue){setCookie('pageFontSize', newValue)});function setCookie(name, value){var days = 1;var exp = new Date();exp.setTime(exp.getTime() + days*24*60*60*1000);document.cookie = name + '=' + value + ';expires=' + exp.toUTCString();}function getCookie(name){var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)');return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null;}
[8]ページ先頭

©2009-2025 Movatter.jp