XSLT <xsl:attribute-set> एलीमेंट
व्याख्या और उपयोग
<xsl:attribute-set> एलीमेंट नामित अभियात्मक समूह बना सकता है। यह अभियात्मक समूह (attribute-set) पूर्णतः आउटपुट दस्तावेज़ पर लागू की जा सकती है。
टिप्पणी:आवश्यकता है <xsl:stylesheet> या <xsl:transform> के उपशाखा बिन्दु
वाक्यांश
<xsl:attribute-set name="name" use-attribute-sets="name-list"> <!-- Content:xsl:attribute* --> </xsl:attribute-set>
गुण
गुण | मूल्य | वर्णन |
---|---|---|
name | name | आवश्यक।गुण सेट का नाम निर्धारित करें。 |
use-attribute-sets | name-list | वैकल्पिक।इस गुण सेट में इस्तेमाल किए गए अन्य गुण सेट की सूची, जो कि स्पेस से अलग है। |
इंस्टैंस
उदाहरण 1
किसी भी आउटपुट एलेमेंट पर लागू होने वाली गुण सेट (attribute-set) बनाएं (attribute-set):
<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>