XSLT <xsl:ad alanı-diğer adı>
❮ XSLT Öğe Referansını Tamamlayın
Tanım ve Kullanım
<xsl:namespace-alias> öğesi, stil sayfasındaki bir ad alanını çıktıdaki farklı bir ad alanıyla değiştirmek için kullanılır.
Not: <xsl:namespace-alias> bir üst düzey öğedir ve <xsl:stylesheet> veya <xsl:transform> öğesinin alt düğümü olmalıdır.
Sözdizimi
<xsl:namespace-alias
stylesheet-prefix="prefix|#default"
result-prefix="prefix|#default"/>
Öznitellikler
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 |
örnek 1
wxsl öneki çıktıda xsl önekine dönüştürülür:
<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 Öğe Referansını Tamamlayın