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 6914 - [XQTS] ST-WhereExpr001, ST-WhereExpr002 and statictyping-7 should expect XPTY0004 and not FORG0006
Summary: [XQTS] ST-WhereExpr001, ST-WhereExpr002 and statictyping-7 should expect XPTY...
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-18 10:53 UTC by Oliver Hallam
Modified: 2009-08-31 20:06 UTC (History)
0 users

See Also:


Attachments

Description Oliver Hallam 2009-05-18 10:53:11 UTC
ST-WhereExpr001 is as follows:

for $file in ($input-context//Folder)[1]/File
where ($file, 1)
return $file/FileName

the where predicate is normalized to
fn:boolean(($file, 1))

$file has static type element File of type xs:untyped, and 1 has type xs:integer

The sequence ($file, 1) therefore has static type [FS 4.1]
(element File of type xs:untyped, xs:integer)

This does not satisfy the rule given for fn:boolean [FS 7.2.4]

Thus, I believe in static typing mode, XPTY0004 is the only reasonable result.


Similar for ST-WhereExpr002 and statictyping-7.
Comment 1 Andrew Eisenberg 2009-08-17 18:05:26 UTC
I've made the changes that you suggested.
Comment 2 Andrew Eisenberg 2009-08-17 18:38:58 UTC
Having closed this bug, I just noticed Bug #2943, in which we explicitly decided that FORG0006 was the correct expected result.

I'm going to ask the the XML Query WG to look at this issue at our next meeting.
Comment 3 Andrew Eisenberg 2009-08-31 20:06:08 UTC
At our Aug. 25 meeting, the XML Query and XSL WGs decided to accept both FORG0006 and XPTY0004 for the test cases that you've identified.

Please close this bug if you agree with this resolution.