[Bug 11700] New: [XQTS] ForExpr029's is-XPath2 should be false

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

           Summary: [XQTS] ForExpr029's is-XPath2 should be false
           Product: XML Query Test Suite
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: minor
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: jmdyck@ibiblio.org
         QAContact: public-qt-comments@w3.org


ForExpr029's query is basically
    for $var in (1,2) for $var in (2,2) return $var * $var
for which the expected output is
    4 4 4 4
which is fine for XQuery, but the test-case has is-XPath2="true", implying that
an XPath2 processor would give the same result. In fact, an XPath2 processor
should raise a syntax error on this expression, because XPath doesn't allow
multiple adjacent 'for' clauses. (It would be valid XPath if there were an
extra 'return' before the second 'for'.)

So the is-XPath2 attribute for this test-case should instead have the value
"false".

-- 
Configure bugmail: http://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 Sunday, 9 January 2011 00:27:57 UTC