定义一个命名的属性集合.
|
<xsl:attribute-set name = QName use-attribute-sets = QNames </xsl:attribute-set> |
Attributes
name
必须的. 属性集合的名字,用来被调用时候的识别符号。
use-attribute-sets
这个是一个很重要的属性。它通过空格隔开各个属性集的名称来调用已有的属性集合如:
<xsl:attribute-set name = “这个属性集合的名字” use-attribute-sets = “已有属性集名1已有属性集名2” </xsl:attribute-set>
通过这样调用当前属性集将会有(属性集合1和属性集2)的属性,已经自己定义的属性。
Element Information
|
出现的个数 |
Unlimited |
|
Parent elements |
xsl:stylesheet, xsl:transform |
|
Child elements |
xsl:attribute |
Remarks
<xsl:attribute-set> 标签中可以出现0个或多个的<xsl:attribute>标签。
在使用这个属性集的时候可以在调用此标签的位置添加use-attribute-sets属性如:<xsl:element use-attribute-sets=”aaaaa”/>
注意<xsl:attribute-set>不能直接或间接的调用自己。
Example of <xsl:attribute-set>
浙公网安备 33010602011771号