XSLT <xsl:attribute-set>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<xsl:attribute-set> ဒြပ်စင်သည် အမည်ပေးထားသည့် ရည်ညွှန်းချက်အစုတစ်ခုကို ဖန်တီးသည်။ attribute-set ကို output document တစ်ခုလုံးတွင် အသုံးချနိုင်သည်။
မှတ်ချက်- <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 |
ဥပမာ ၁
မည်သည့် အထွက်ဒြပ်စင်သို့မဆို အသုံးချနိုင်သော အရည်အချင်း-အစုံကို ဖန်တီးပါ-
<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 ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။