RE: [xsl] Namespace-alias using #default with no default namespace in scope

Subject: RE: [xsl] Namespace-alias using #default with no default namespace in scope
From: "Buchcik, Kasimier" <k.buchcik@xxxxxxxxxxxx>
Date: Fri, 12 May 2006 12:16:16 +0200
Hi,

> -----Original Message-----
> From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
>
> > Ah! Is a more recent version of the XSLT 2.0 spec available
> > somewhere? I'm currently reading http://www.w3.org/TR/xslt20,
> > which says: "W3C Candidate Recommendation 3 November 2005".
>
> That URL always points to the latest. But all the agreed changes are
> publicly available as bugzilla entries.

I see.

[...]

> > Couldn't there be a rule, or at least a suggestion in XSLT
> > 2.0 to use either the literal namespace prefix or the target
> > namespace prefix?
>
> It's well-defined in XSLT 2.0 which prefix you get. The rule
>
> "A namespace node whose string value is a target namespace
> URI is copied to
> the result tree, whether or not the URI identifies an
> excluded namespace."
>
> means that in normal circumstances (that is, when the same namespace
> bindings are in scope for the xsl:namespace-alias element and
> the literal
> result element) you will get the result-prefix.

I feel somehow relieved that this was made a rule in XSLT 2.0.

Thanks & regards,

Kasimier

Current Thread