This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 29993 - [QT3TS] syntax errors in some fn-transform test queries
Summary: [QT3TS] syntax errors in some fn-transform test queries
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-09 19:07 UTC by Michael Dyck
Modified: 2016-11-10 19:27 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Dyck 2016-11-09 19:07:22 UTC
In fn/transform.xml, some of the tests that are marked as okay for XP31
have non-XP31 syntax in the test-query.

Specifically:

(1)
The tests
    fn-transform-3
    fn-transform-3a
    fn-transform-4
    fn-transform-5
    fn-transform-31
each has
   let $foo := expr1
   let $bar := expr2
   return expr3

This needs a "return" after expr1,
or else a comma and delete the second "let".


(2)
fn-transform-15 has a node constructor


(3)
The tests
    fn-transform-65
    fn-transform-66
    fn-transform-67
    fn-transform-68
    fn-transform-69
    fn-transform-70
    fn-transform-71
    fn-transform-72
    fn-transform-73
    fn-transform-74
    fn-transform-75
    fn-transform-76
    fn-transform-77
    fn-transform-78
each has
    declare variable $foo as xs:string := "....";
which I'm guessing should be
    let $foo := "..." return
Comment 1 Michael Kay 2016-11-09 20:12:59 UTC
Now fixed. There were some others as well, e.g. use of backtick syntax for string templates.
Comment 2 Michael Dyck 2016-11-09 23:08:01 UTC
No, there are still a lot of syntax errors, mostly due to semicolons and StringConstructors.
Comment 3 Michael Kay 2016-11-10 08:52:11 UTC
OK, I've had another go at making these tests run under XPath.
Comment 4 Michael Dyck 2016-11-10 19:27:07 UTC
The second pass fixed all the ones I complained about originally, but it left a bunch (that I didn't complain about) that got broken in the first pass. I've committed fixes for those -- please check them over.