CSS3: default namespace


   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) }


  @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 UTC