[Bug 2921] Provide an exemple of a numeric range used as filter epression

http://www.w3.org/Bugs/Public/show_bug.cgi?id=2921

           Summary: Provide an exemple of a numeric range used as filter
                    epression
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P4
         Component: XQuery
        AssignedTo: chamberl@almaden.ibm.com
        ReportedBy: pierrick.brihaye@culture.gouv.fr
         QAContact: public-qt-comments@w3.org


It would be nice to have an example for this commonly used kind of filter
expression :

$foo[(2 to 5)]

New users often tend to use a predicate-like syntax - $foo[2 to 5] - and thus
get syntax errors.

It would also be nice to add a reference to "Filter expressions" (3.3.2) in the
"Predicates" section (3.2.2). I don't know whether it should start with
"warning", "see also", "do no confuse"...

Received on Thursday, 23 February 2006 08:31:05 UTC