W3C home > Mailing lists > Public > www-style@w3.org > April 2008

Re: [css3-namespace] Empty String Namespaces

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 22 Apr 2008 18:05:29 +0200
To: Boris Zbarsky <bzbarsky@MIT.EDU>
Cc: www-style@w3.org
Message-ID: <7q2s04tkbe37nsgj4fk9u32ucpvc120524@hive.bjoern.hoehrmann.de>

* Boris Zbarsky wrote:
>Note that in terms of, say, the DOM selectors API an empty string default 
>namespace means there is no default namespace while an empty string namespace 
>for a prefix is an error.
>
>Recasting that in terms of @namespace rules, that would mean that
>
>   @namespace "";
>
>has no effect on matching whatsoever, while
>
>   @namespace foo "";
>
>should be an error.  That would correspond to "yes, yes, no, no", right?

I agree with your analysis. However, in an XML 1.1 document, whether you
have <example xmlns='' /> or <x:example xmlns:x='' /> does not matter,
in both cases you have the "example" element in no namespace, and I'd
expect the same from the @namespace rules. I think if either of these is
an error, both should be an error.

(Also: http://lists.w3.org/Archives/Public/public-webapi/2008Apr/0204).
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 22 April 2008 16:06:13 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:05 GMT