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 20694 - [QT3TS] extvardeclwithouttype-8 and others
Summary: [QT3TS] extvardeclwithouttype-8 and others
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: PC Windows NT
: 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: 2013-01-17 11:38 UTC by Tim Mills
Modified: 2013-01-17 12:27 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2013-01-17 11:38:52 UTC
This test and others use XQuery 1.0 or XPath 3.0 syntax.

      <environment>
         <param name="x"
                select="let $var := 1 + 1 return $var"
                declared="true"/>
      </environment>

Surely we should be sticking to XPath 2.0 here, and better still, simple values?
Comment 1 Michael Kay 2013-01-17 12:17:05 UTC
I agree. The spec says "The value to be bound to the variable is given in the select attribute, which should be a simple XPath expression - typically a literal, or a simple call on a constructor function." These were carried forward from XQuery 1.0 tests, and it's hard to see what they were trying to achieve, unless it was the ability to use the output of one query as input to another.
Comment 2 Michael Kay 2013-01-17 12:27:06 UTC
Fixed. I kept the expressions to retain the intent of the test author but they are all now simple XPath 2.0 expressions.