XSLT <xsl: attribute-set>
❮ استكمال مرجع عنصر 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