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

Re: Fwd: Re: [jdom-interest] Namespace issues, et al.

From: Tim Bray <tbray@textuality.com>
Date: Sun, 23 Feb 2003 23:35:31 -0800
Message-ID: <3E59CB43.1060308@textuality.com>
To: malachi@tremerechantry.com
Cc: xml-names-editor@w3.org

Malachi de AElfweald wrote:
> I am confused. No such thing as a null namespace? But the document
> (that lists you as Editor) says " The namespace name for an unprefixed 
> attribute name is always null. "

Hmm... I'm not actually in the editing loop on this version, but I agree 
that that language is a bit confusing.  The namespaces rec describes a 
condition called "being in a namespace" and gives methods for putting 
elements and attributes in namespaces.  The only way for an attribute to 
be in any namespace at all is for it to have a prefix.  No prefix, no 
namespace.  I'm not sure what they mean by "null namespace" but now I'll 
review the language and perhaps comment.

> Regarding the xhtml part... are you saying that the only way to make it 
> "correct"
> would be <a xhtml:href="http://blah">link</a> ??? Cuz, that isn't what 
> any of the
> examples show.

No, in fact, in XHTML, the "a" element is in the xhtml namespace, but 
its href attribute isn't in any namespace.  So <xhtml:a href="foo"> is 
perfectly correct.  -Tim
Received on Monday, 24 February 2003 02:35:37 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:13:28 UTC