[Bug 17600] New: Range predicates

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