6.8. Namespace Aliases
When creating new elements it may be necessary to create an element that has a namespace. However, it is often not feasible to use the namespace directly as the name of an LRE, so the XSLT specification provides a mechanism to supply an alias for the prefix of a namespace. The <xsl:namespace-alias> element is used to define an alias for a namespace prefix. As shown in the following element model definition, the <xsl:namespace-alias> element is an empty top-level element with two attributes.
<!-- Category: top-level-element --> <xsl:namespace-alias stylesheet-prefix = prefix | "#default" result-prefix = prefix | "#default" />
The stylesheet-prefix attribute is used to specify the namespace prefix that will be used in the ...
Get XSLT and XPATH: A Guide to XML Transformations now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.