Re: [css3-namespace] 3. Declaring namespaces: the @namespace rule

Erik Dahlström wrote:
> 
> Dear CSS WG,
> 
> This is a last call comment from the SVG WG on the CSS Namespaces 
> Module, W3C Working Draft 15 February 2008, 
> http://www.w3.org/TR/2008/WD-css3-namespace-20080215/. Please let us 
> know if you have any questions by CC:ing your responses to www-svg@w3.org.
> 
>> Thus the actual prefixes used in a CSS style sheet, and whether they
>> are defaulted or not, are independent of the namespace prefixes used
>> in the markup and whether these are defaulted or not.
> 
> Excellent; this is a critical feature. Please add an example that
> clearly demonstrates this.

Added

  For example, given the following XML document:
     <qml:elem xmlns:qml="http://example.com/q-markup"></qml:elem>
   and the following @namespace declarations at the beginning of a CSS file:
     @namespace Q "http://example.com/q-markup";
     @namespace lq "http://example.com/q-markup";
   The selectors Q|elem and lq|elem in that CSS file would both match the
   element qml:elem. (The selector qml|elem would be invalid.)

~fantasai

Received on Monday, 10 March 2008 19:09:42 UTC