Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

XSLT Element

XSLT xsl:namespace-alias Element


XSLT Element Reference Manual Complete XSLT Element Reference Manual


Definition and Usage

xsl:namespace-alias element is used to replace a namespace in the style sheet with a different namespace in the output.

Note:xsl:namespace-alias is a top-level element and must be the xsl:stylesheet or xsl:transform child node.


Syntax

stylesheet-prefix="prefix|#default"

result-prefix="prefix|#default"/>

property

property Value Description
stylesheet-prefix prefix
#default Required. Specifies the namespace you want to change.
result-prefix prefix
#default Required. Specifies the desired namespace for the output.

Example 1

The prefix wxsl is converted to the prefix xsl in the output:

xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

xmlns:wxsl="http://www.w3cschool.cc/w3style.xsl">

wxsl:stylesheet

xsl:apply-templates/


XSLT Element Reference Manual Complete XSLT Element Reference Manual