W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2016

Re: [Bug 29355] New: Modernize sequence filtering

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 4 Jan 2016 01:50:42 +0000
To: <public-qt-comments@w3.org>
Message-ID: <5689CFF2.1080000@nag.co.uk>
On 03/01/2016 21:22, bugzilla@jessica.w3.org wrote:
> With 2. and 3. you can write $sequence[2 to 10 by 3] to get the (2,5,8)-th
> elements.

The existing xpath 2 syntax

$sequence[position() le 10][position() mod 3 =2]

seems simpler (but more general) and doesn't require new syntax.

David

________________________________


The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is:

Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.



This e-mail has been scanned for all viruses by Microsoft Office 365.

________________________________
Received on Monday, 4 January 2016 01:51:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:57:57 UTC