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

[CSS3] selectors to use xpath syntax

From: Manuel Strehl <manuel.strehl@stud.uni-regensburg.de>
Date: Thu, 08 Dec 2005 11:44:19 +0100
Message-Id: <43981C93020000FD00000CD3@gw.ngate.uni-regensburg.de>
To: <www-style@w3.org>


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... ;-)

Received on Thursday, 8 December 2005 10:45:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:22 UTC