W3C home > Mailing lists > Public > xml-names-editor@w3.org > June 1999

namespace for unqualified attributes

From: Paul Rabin <prabin@odi.com>
Date: Fri, 04 Jun 1999 14:51:10 -0400
Message-Id: <3.0.6.32.19990604145110.00db6590@mailhost.odi.com>
To: xml-names-editor@w3.org
Editors,

The "Namespaces in XML" specification should, but appears not to
normatively specify which of the following is true for unqualified
attributes, that is, attributes whose name matches NCName rather than QName:

a) they belong to no namespace (or to an unnamed namespace associated with
the document), or

b) they belong to the same namespace as the element in whose start tag they
occur, or

c) it is unspecified which of a) or b) is the case.

I've found three parts of the specification that bear on this point:

Section 5.2 says:

	"Note that default namespaces do not apply directly to attributes."

Section 5.3 says:

	"... the default namespace does not apply to attribute names."

Appendix A.3 says:

	"... the names of all unqualified attributes are assigned to the
appropriate per-element-type partition."

Regarding the text cited above from section 5.2, a) it is not clear whether
it is normative, since it is a note; and b) it suggests that default
namespaces might apply to attributes in some indirect manner.

It might also be doubted whether the text cited above from section 5.3 is
normative, since it describes an example, and draws conclusions from
requirements purportedly given elsewhere in the specification rather than
stating requirements directly.  The example, however, is not consistent
with a requirement that unqualified attributes belong to the namespace of
their element, since in this case, the namespace of the element is the
default namespace.

The text cited from appendix A.3 is, of course, non-normative, but seems to
imply that unqualified attributes do belong to the namespace of their element.

If there is other text that bears on this question, I would be most
grateful if it were brought to my attention.

	Sincerely yours,

	Paul Rabin
Received on Friday, 4 June 1999 14:52:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:42 GMT