<xsl:attribute-set>

<xsl:attribute-set> 元素建立一個命名的屬性集,然後可以將其作為整體應用到輸出文件中,類似於 CSS 中的命名樣式。

語法

xml
<xsl:attribute-set name=NAME use-attribute-sets=LIST-OF-NAMES>
  <xsl:attribute>
</xsl:attribute-set>

必需屬性

name

指定屬性集的名稱。名稱必須是有效的 QName。

可選屬性

use-attribute-sets

從其他屬性集構建屬性集。貢獻集的名稱必須用空格字元分隔,並且不能直接或間接地嵌入自身。

型別

頂層,必須是 <xsl:stylesheet><xsl:transform> 的子元素。

規範

XSLT,第 7.1.4 節。

Gecko 支援

支援。