From: Michael Kay <mhkay@ic...> - 2001-08-02 09:55:49
> In theory - as XSLT Programmer's Reference explains :-) - the
> xslt prefixes
> are mapped to xsl prefixes on output.
No, the namespace URI's are mapped!
<xsl:namespace-alias stylesheet-prefix="x" result-prefix="y"/>
Means, "for any element or attribute in the stylesheet whose name uses the
namespace URI associated with prefix x, when copying the element or
attribute to the result document, replace its original name with a name that
uses the namespace URI associated with prefix y, serializing this name using
any convenient prefix that is associated with that namespace URI".
> Unfortunately, Both Saxon (Instant Saxon 6.2.2) and Xalan
> 2.2.d6 both fail
> to alias the namespaces, so the output file still contains the xslt
> namespace prefix.
I think you'll find the output is technically correct, even though the
namespace prefixes it uses are not necessarily the ones you would have
Get latest updates about Open Source Projects, Conferences and News.