Re: [CSS3] selectors to use xpath syntax

> 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