XSLT <xsl:속성 집합>
❮ 완전한 XSLT 요소 참조
정의 및 사용
<xsl:attribute-set> 요소는 명명된 속성 집합을 생성합니다. 속성 집합은 출력 문서에 전체적으로 적용될 수 있습니다.
참고: <xsl:stylesheet> 또는 <xsl:transform>의 자식이어야 합니다.
통사론
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
속성
Attribute | Value | Description |
---|---|---|
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 |
실시예 1
모든 출력 요소에 적용할 수 있는 속성 집합을 만듭니다.
<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>
❮ 완전한 XSLT 요소 참조