XSLT <xsl:özellik kümesi>
❮ XSLT Öğe Referansını Tamamlayın
Tanım ve Kullanım
<xsl:attribute-set> öğesi, adlandırılmış bir nitelikler kümesi oluşturur. Nitelik kümesi, çıktı belgesine bir bütün olarak uygulanabilir.
Not: <xsl:stylesheet> veya <xsl:transform> öğesinin alt öğesi olmalıdır.
Sözdizimi
<xsl:attribute-set
name="name" use-attribute-sets="name-list">
<!-- Content:xsl:attribute* -->
</xsl:attribute-set>
Öznitellikler
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 |
örnek 1
Herhangi bir çıktı öğesine uygulanabilecek bir nitelik kümesi oluşturun:
<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 Öğe Referansını Tamamlayın