XSLT <xsl:namespace-alias>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
<xsl:namespace-alias> ဒြပ်စင်အား ပုံစံစာရွက်ရှိ namespace ကို အထွက်ရှိ အခြား namespace သို့ အစားထိုးရန် အသုံးပြုပါသည်။
မှတ်ချက်- <xsl:namespace-alias> သည် ထိပ်တန်းအဆင့်ဒြပ်စင်တစ်ခုဖြစ်ပြီး <xsl:stylesheet> သို့မဟုတ် <xsl:transform> ၏ ကလေး node ဖြစ်ရပါမည်။
အထားအသို
<xsl:namespace-alias
stylesheet-prefix="prefix|#default"
result-prefix="prefix|#default"/>
ဂုဏ်တော်
Attribute | Value | Description |
---|---|---|
stylesheet-prefix | prefix #default |
Required. Specifies the namespace you wish to change |
result-prefix | prefix #default |
Required. Specifies the desired namespace for the output |
ဥပမာ ၁
wxsl ရှေ့ဆက်ကို အထွက်တွင် xsl ရှေ့ဆက်အဖြစ်သို့ ပြောင်းသည်-
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:wxsl="https://www.w3schools.com/w3style.xsl">
<xsl:namespace-alias stylesheet-prefix="wxsl" result-prefix="xsl"/>
<xsl:template match="/">
<wxsl:stylesheet>
<xsl:apply-templates/>
</wxsl:stylesheet>
</xsl:template>
</xsl:stylesheet>
❮ XSLT ဒြပ်စင် အကိုးအကားကို အပြီးသတ်ပါ။