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 1957 - Should ForExpr024 result in XPTY0004 or XPTY0019
Summary: Should ForExpr024 result in XPTY0004 or XPTY0019
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.6.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Mike Rorke
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 19:55 UTC by Marc Van Cappellen
Modified: 2006-04-26 13:55 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2005-09-01 19:55:44 UTC
The test ForExpr024 expects XPTY0004, can you explain?
Our implementation raises, due to the path expression on $file, XPTY0019: It is 
a type error if the result of an step (other than the last step) in a path 
expression contains an atomic value.
Comment 1 Andrew Eisenberg 2005-09-01 21:42:02 UTC
This test case nay show an omission in the spec. 3.9.1, For and Let Clauses, says

"The for and let clauses of a given FLWOR expression may bind the same variable
name more than once. In this case, each new binding occludes the previous one,
which becomes inaccessible in the remainder of the FLWOR expression."

This allows me to say "for $x in ..., $x in ... return ...". I'm not sure that
this allows "for $x at $x in ... return ...".
Comment 2 Mike Rorke 2005-09-15 21:30:52 UTC
I agree - XPTY0019 is more appropriate in this case
Comment 3 Alberto Massari 2006-04-21 12:10:56 UTC
As part of bug 2692, this query should now expect error XQST0089
Comment 4 Carmelo Montanez 2006-04-26 13:55:54 UTC
Alberto:

That is correct.  I updated the catalog file and will mark this as
fixed.

Thanks,
Carmelo