中国最全IT社区平台 联系我们 | 收藏本站
华晨云阿里云优惠2

xslt教程

XSLT 教程

XSLT 高级

XSLT 参考手册

  • XSLT 实例
  • XSLT <xsl:call-template> 元素

    阅读 (2464)

    XSLT <xsl:call-template> 元素


    XSLT 元素参考手册 完整的 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 元素参考手册
    关闭
    程序员人生