एक्सएसएलटी <xsl:namespace-alias>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ
परिभाषा और उपयोग
<xsl:namespace-alias> एलिमेंट का उपयोग स्टाइल शीट में नेमस्पेस को आउटपुट में एक अलग नेमस्पेस में बदलने के लिए किया जाता है।
नोट: <xsl:namespace-alias> एक शीर्ष-स्तरीय तत्व है, और <xsl:stylesheet> या <xsl:transform> का चाइल्ड नोड होना चाहिए।
वाक्य - विन्यास
<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 |
उदाहरण 1
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>
❮ पूर्ण एक्सएसएलटी तत्व संदर्भ