W3C home > Mailing lists > Public > public-qt-comments@w3.org > June 2012

[Bug 17600] New: Range predicates

From: <bugzilla@jessica.w3.org>
Date: Tue, 26 Jun 2012 11:55:21 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-17600-523@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=17600

           Summary: Range predicates
           Product: XPath / XQuery / XSLT
           Version: Working drafts
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3.1 Requirements and Use Cases
        AssignedTo: jonathan.robie@gmail.com
        ReportedBy: john.snelson@marklogic.com
         QAContact: public-qt-comments@w3.org


Users often need to select a subsequence of a given sequence, for instance,
when paginating or sampling a sequence of data. Currently we have the
fn:subsequence() function which can do this:

fn:subsequence($seq,1,10)

However after using positional predicates, users are often surprised that the
following intuitive syntax does not work:

$seq[1 to 10]

Indeed this is such a useful shorthand that MarkLogic already implements it as
an extension to XQuery. I think it would be good to standardize this usage and
make it available to other XQuery users.

-- 
Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 26 June 2012 11:55:33 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:49 UTC