xsl-list
[Top] [All Lists]

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

2006-05-12 03:16:30
Hi, 

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 

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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--