W3C home > Mailing lists > Public > www-style@w3.org > May 2001

CSS3: default namespace

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 18 May 2001 22:23:39 +0200
To: www-style@w3.org
Message-ID: <451bgtoe0s6nghiar7hrea67cu0if4etuh@4ax.com>
Hi,

   Since XHTML documents commonly just belong to one singe namespace,
I'd like to have a simple method to declare the default namespace. I
couldn't find anything in the CSS3 Selectors draft; to be honest, I
think the three namespace sections should be put into one section; I
already wanted to complain the omission of namespaces for attribute
selectors since I couldn't find them in the draft. The new section could
be made up like

  5 Namespaces in CSS
  	5.1 Element selectors
	5.2 Attribute selectors
	5.3 The universal selector
	5.4 Backward compatibility

Anyway, does the spec already include a method to match all elements in
the XHTML namespace without using this namespace each time? Section
6.1.1 talks of a default namespace and says, what happens if none is
selected, but it doesn't say how to do that. I thought of something like

  @namespace "http://www.w3.org/1999/xhtml";
  p::first-line { text-line-through-color: rgb(7,155,32) }

or

  @namespace * url(http://www.w3.org/1999/xhtml);
  p::first-line { text-line-through-color: rgb(7,155,32) }

How to refer to elements in the default namespace with the | namespace
separator syntax?
-- 
Björn Höhrmann { mailto:bjoern@hoehrmann.de } http://www.bjoernsworld.de
am Badedeich 7 } Telefon: +49(0)4667/981028 { http://bjoern.hoehrmann.de
25899 Dagebüll { PGP Pub. KeyID: 0xA4357E78 } http://www.learn.to/quote/
Received on Friday, 18 May 2001 16:22:46 GMT

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