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

Re: [css3-namespace] CSS qualified names syntax

From: fantasai <fantasai.lists@inkedblade.net>
Date: Tue, 11 Mar 2008 07:49:04 -0700
Message-ID: <47D69BE0.5070804@inkedblade.net>
To: Bert Bos <bert@w3.org>
CC: www-style@w3.org

Bert Bos wrote:
> On Monday 10 March 2008 22:06, fantasai wrote:
>> Just added a grammar definition to match the defined syntax for CSS
>> qualified names:
>>
>>    http://dev.w3.org/csswg/css3-namespace/#css-qnames
>>
>> It would be good if someone more familiar with the grammar syntax
>> checked that for errors. :)
>>
>> ~fantasai
> 
> Did you intent "qname_prefix" in the second rule?
> 
>     qname_prefix
>       : [namespace_prefix]? '|'
>       ;
>     wqname_prefix
>       : qname | [ '*' '|' ]
>         ^^^^^
>       ;
> 
> I think copying, rather than referring to the first rule makes the 
> second one easier to read:
> 
>     qname_prefix
>       : namespace_prefix? '|'
>       ;
>     wqname_prefix
>       : namespace_prefix? '|'
>       | '*' '|'
>       ;

Fixed.

> But I wonder if this grammar is necessary at all. The syntax is already 
> defined the Selectors module for the selectors part and in the Values 
> and Units module for the attr() notation. It's better not to have two 
> (normative) descriptions of something, even if it is as simple as this 
> one.

My intention is that Selectors refers to CSS Namespaces for its qualified
names syntax. That helps us keep Selectors and CSS3 Values and Units (and
anything else we add later) in sync.

~fantasai
Received on Tuesday, 11 March 2008 15:49:46 GMT

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