W3C home > Mailing lists > Public > www-style@w3.org > September 1999

Re: CSS Namespaces: Need multiple namespaces!

From: Chris Lilley <chris@w3.org>
Date: Wed, 29 Sep 1999 19:28:00 +0200
Message-ID: <37F24C20.200B60FD@w3.org>
To: www-style <www-style@w3.org>
CC: Peter Linss <peterl@netscape.com>


Ian Hickson wrote:
> 
> In the CSS3 namespace draft, a namespace prefix can be associated with
> only a single namespace at a time.
> 
> This is very, very limiting. For example, in the UA stylesheet of a UA
> supporting HTML4 and XHTML, each element would need six entries!
> 
>    @namespace html4-strict url(...);
>    @namespace html4-transitional url(...);
>    @namespace html4-frameset url(...);
>    @namespace xhtml4-strict url(...);
>    @namespace xhtml4-transitional url(...);
>    @namespace xhtml4-frameset url(...);

Well HTML is written in SGML (allegedly) not XML so has no XML
namespace. That gets rid of three of these; if the HTML WG would kindly
give XHTML one namespace then it would be possible to have justa single
declaration to cover XHTML.

People are likely to need somewhat different style sheets for XHTML and
for HTML in any case, because of limitations and constraints on HTML
processing (certain elements are always block, always have 40px left
margin, and so on) whcj do not (should not) apply to XHTML.

--
Chris
Received on Wednesday, 29 September 1999 13:28:08 GMT

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