XSLT <xsl:namespace-alias>
Element
Definition and Usage
The <xsl:namespace-alias>
element is used to replace a namespace in the stylesheet with a different namespace in the output.
Note: <xsl:namespace-alias>
is a top-level element and must be a child of <xsl:stylesheet>
or <xsl:transform>
.
Syntax
Attributes
Attribute | Value | Description |
---|---|---|
stylesheet-prefix | prefix <br>#default | Required. Specifies the namespace you want to change. |
result-prefix | prefix <br>#default | Required. Specifies the desired namespace for the output. |
Example 1
The prefix wxsl is converted to the prefix xsl in the output: