Namespaces 1.1 - Ambiguity about attribute names

The Namespaces in XML 1.1 CR seems to me to perpetuate an undesirable 
ambiguity about whether or not attribute names are in a namespace. If I have missed a 
clear statement on this matter I would appreciate it being drawn to my 
attention.

Take the version attribute in the following element,

<xsl:stylesheet 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0" ....>

Is the version attribute in the XSLT namespace or not? The CR is, as far as I 
can see, silent on the matter. [I know how an XSLT processor will treat the 
version attribute but that is not my question.]

Consider also the literal result element,
<someElement 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xsl:version="2.0" ....>

The xsl:version attribute is explicitly in the namespace 
http://www.w3.org/1999/XSL/Transform.

Is the xsl:version attribute in the second code snippet the same attribute as 
the version attribute seen in the first snippet?

If it is, how can I know that?

It seems to me that the Namespaces in XML 1.1 specification is a good 
opportunity to clarify this area of namespaces and attribute names - after all the 
specification and its predecessor supposedly exist to clear up ambiguity.

Andrew Watt

Received on Sunday, 3 August 2003 09:29:45 UTC