W3C home > Mailing lists > Public > xml-names-editor@w3.org > August 2003

Namespaces 1.1 - Ambiguity about attribute names

From: <Svgdeveloper@aol.com>
Date: Sun, 3 Aug 2003 08:57:55 EDT
Message-ID: <62.32fd05bc.2c5e60d3@aol.com>
To: xml-names-editor@w3.org
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

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:56:49 UTC