W3C home > Mailing lists > Public > public-qt-comments@w3.org > February 2004

[XPath] Simplified grouping in primary expressions

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 08 Feb 2004 08:28:17 +0100
To: public-qt-comments@w3.org
Message-ID: <4062e262.402441700@smtp.bjoern.hoehrmann.de>

Hi,

  I suggest to extend Primary expressions in XPath 2.0 to allow a subset
of the an+b expression as defined in

  http://www.w3.org/TR/css3-selectors/#nth-child-pseudo

for simplified grouping. It is basically possible to express the same
functionality using count(...), the following-/preceding-sibling axes
and the mod operator but this is typically rather unconvenient and hard
to understand for beginners. It should for example be possible to use

  tr[2n]

to select all even tr children of the context node.

regards.
Received on Sunday, 8 February 2004 02:28:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 5 February 2014 07:13:57 UTC