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

Re: [CSS3] selectors to use xpath syntax

From: Orion Adrian <orion.adrian@gmail.com>
Date: Sun, 11 Dec 2005 21:38:44 -0500
Message-ID: <abd6c8010512111838m4942c0efx6acbda2b8acfc25c@mail.gmail.com>
To: www-style@w3.org

> E.g. the CSS selector 'a b' is a very cheap operation, while the XPath
> equivalent 'a//b' is a very expensive one.

Actually they're exactly the same thing. XPath and CSS selectors are
neither targeting nor selecting. CSS uses a matching alorithm _XSL:T_
using a selecting one.

The problem is that even XPath has expensive axes to implement using a
matching algorithm. What has been asked in the past is that XPath be
used in CSS, either with the full set of axes or a limited set of axes
that allow for inexpensive calculation.


Orion Adrian
Received on Monday, 12 December 2005 02:38:48 UTC

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