W3C home > Mailing lists > Public > www-xpath-comments@w3.org > July to September 2006

Re: XPath and Ranges

From: David Carlisle <davidc@nag.co.uk>
Date: Wed, 2 Aug 2006 17:13:40 +0100
Message-Id: <200608021613.k72GDevC031320@edinburgh.nag.co.uk>
To: davidw@kencook.com
Cc: www-xpath-comments@w3.org

This is the wrong list (it is for formal comments on the xpath
specification, ratherthan on xpath expample problems), you want

but in xpath2

/chapter/(title[1]/(.,following-sibling::node()) except title[2]/(.,following-sibling::node())

is probably the most literal translation into xpath, but others are
possible eg

for $end in /chapter/title[2]
/chapter/(title[1]/(.,following-sibling::node()[. <<  $end],$end)

In XPath1 it's probably hard to do but in xpath1+xslt1 (so you can define
variables) then again it's possible.

Received on Wednesday, 2 August 2006 16:13:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:16 UTC