当前位置: 首页 > 网络学院 > XML相关教程 > XSL/XSLT > XSLT <xsl:call-template> 元素

XSL/XSLT
XSL 语言
XSLT 介绍
XSLT 浏览器
XSLT 转换
<xsl:template>
<xsl:value-of>
<xsl:for-each>
<xsl:sort>
<xsl:if>
<xsl:choose>
<xsl:apply-templates>
XSLT - 客户端
XSLT - 服务器端
XSLT - 编辑XML
XSLT 摘要
XSLT 元素参考
XSLT 函数
XSL 编辑器

XSL/XSLT 中的 XSLT <xsl:call-template> 元素


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 309 ::
收藏到网摘: n/a

Definition and Usage
定义和用法

The <xsl:call-template> element calls a named template.
<xsl:call-template> 元素的作用是:请求一个指定的模版。


Syntax
语法

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

Attributes
属性

属性 描述
name templatename Required. Specifies the name of the template to be called
必要参数。指定请求的模版名称

Example 1
案例1

Call a template named "description" when the processor finds a car element:
在处理“finds a car[查找一辆汽车]”元素时,请求一个名为“description”的模版:

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

评论 (0) All

登陆 | 还没注册?