W3C home > Mailing lists > Public > www-style@w3.org > December 2004

Re: XHTML attributes and namespace, clarification needed

From: Robin Berjon <robin.berjon@expway.fr>
Date: Wed, 15 Dec 2004 10:48:13 +0100
Message-ID: <41C0085D.2020303@expway.fr>
To: Laurens Holst <lholst@students.cs.uu.nl>
Cc: www-style@w3.org

Laurens Holst wrote:
> Hm, well, but I can't find anything in the XML Namespaces document that 
> explicitly says it is in the 'null' namespace (or I must have missed 
> it), and I also don't think it makes sense if that weren't the case.

"Default namespace declarations do not apply directly to attribute names".

Therefore, attribute with no prefix implies attribute with no namespace.

> Hm, well, I guess you know what you're talking about :). To me they 
> seemed to be discussing things which were evident (that is: obviously 
> <span class="x" xhtml:class="x2"> is illegal because it has 2 attributes 
> with the same name in the same namespace).

Which clearly is not the case. You're only failing to understand 
namespaces because you're making them more complicated than they are. 
Namespaces are entirely, thoroughly, simple and stupid. They have no 
behaviour whatsoever. They don't inherit. They don't mean anything. They 
don't magically appear where they haven't been requested.

Robin Berjon
Received on Wednesday, 15 December 2004 09:48:41 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:16 UTC