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

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:attribute-set> 元素


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

Definition and Usage
定义和用法

The <xsl:attribute-set> element creates a named set of attributes. The attribute-set can be applied as whole to the output document.
<xsl:attribute-set> 元素为创建了指定的一组属性。属性组可以作用于整段输出文档。

Note: Must be child of <xsl:stylesheet> or <xsl:transform>.
注意:必须是<xsl:stylesheet> 或 <xsl:transform>的子属性。


Syntax
语法

<xsl:attribute-set
name="name" use-attribute-sets="name-list">
 <!-- Content:xsl:attribute* -->
</xsl:attribute-set>

Attributes
属性

属性 描述
name name Required. Specifies the name of the attribute-set
必要参数。指定属性组名称
use-attribute-sets name-list Optional. A white space separated list of other attribute-sets to use in the attribute-set
可选参数。指定在属性组中使用的空白行,用于分隔不同的属性组列表

Example 1
案例1

Create an attribute-set that can be applied to any output element:
创建一个可以应用于所有output[输出]元素的属性组:

<xsl:attribute-set name="font"> <xsl:attribute name="fname">Arial</xsl:attribute> <xsl:attribute name="size">14px</xsl:attribute> <xsl:attribute name="color">red</xsl:attribute>
</xsl:attribute-set>

评论 (0) All

登陆 | 还没注册?