W3C home > Mailing lists > Public > www-style@w3.org > December 2005

Re: [CSS3] selectors to use xpath syntax

From: Laurens Holst <lholst@students.cs.uu.nl>
Date: Thu, 08 Dec 2005 21:59:23 +0100
Message-ID: <43989EAB.1000802@students.cs.uu.nl>
To: "www-style@w3.org" <www-style@w3.org>

Hi,

Not to say that this is an authorative official w3c document or
anything, but if you look at the following section of a page that I
wrote a while ago:

http://www.grauw.nl/articles/css-faq.php#selectors-restrictions

The list with some of the restrictions on selectors mention a number of
reasons (1, 2, 3) why XPath are not really a good idea for CSS.


~Grauw


Manuel Strehl schreef:
> Hi.
>
> How about introducing a pseudo-class (for example), that allows
> selection by using xpath syntax. Most of the common browsers already
> include a XSLT parser with (more or less) full XPath support, so
> technically there should be no problem.
>
> CSS syntax could be something like:
>
> body:xpath( ./div/table ) {} /* == body div table {}  */
>
> based upon the element carrying the pseudo-class. An expression like
> *:xpath( /... ) could refer to the document root and allow complete
> switching to xpath.
>
> I DO see that with this proposal I run into conflict with my last
> posting about "//" comments, but that's life... ;-)
>
> Manuel
>
>   


-- 
Ushiko-san! Kimi wa doushite, Ushiko-san!!
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Laurens Holst, student, university of Utrecht, the Netherlands.
Website: www.grauw.nl. Backbase employee; www.backbase.com.
Received on Thursday, 8 December 2005 21:01:46 GMT

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