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

[Bug 29355] Modernize sequence filtering

From: <bugzilla@jessica.w3.org>
Date: Sun, 10 Jan 2016 14:58:48 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-29355-523-Jem7BCP7AL@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=29355

--- Comment #3 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
FYI, by mail, David Carlisle sent this answer to public-qt-comments@w3.org:

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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Sunday, 10 January 2016 14:58:52 UTC

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