当前位置:K88软件开发文章中心编程语言XmlXSLT01 → 文章内容

XSLT <xsl:call-template> 元素

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-26 18:46:17

由 gelin678 创建,Carrie 最后一次修改 2015-09-28 XSLT <xsl:call-template> 元素XSLT <xsl:call-template> 元素根据名称调用模板。 完整的 XSLT 元素参考手册 定义和用法 <xsl:call-template> 元素可调用一个指定的模板。 语法 <xsl:call-template name="templatename"> <!-- Content:xsl:with-param* --> </xsl:call-template> 属性 属性 值 描述 name templatename 必需。规定被调用的模板名称。 实例 1 当处理程序找到一个 car 元素时,调用名为 "description" 的模板: <xsl:template match="car"> <xsl:call-template name="description"/> </xsl:template> 完整的 XSLT 元素参考手册

XSLT <xsl:call-template> 元素