एक्सएसएलटी <xsl:विशेषता-सेट>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ
परिभाषा और उपयोग
<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>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ