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 2961 - fn-base-uri-2 results in XPTY0019 iso FOTY0011
Summary: fn-base-uri-2 results in XPTY0019 iso FOTY0011
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.6
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 11:06 UTC by Marc Van Cappellen
Modified: 2006-05-17 22:15 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2006-03-02 11:06:26 UTC
fn-base-uri-2.xq reads as follows:

let $var := 0
return
 $var/fn:base-uri()

due to the path expression, where the context item is an atomic value, 
implementations report XPTY0019 iso FOTY0011.

FYI, a different query, but this is similar to 
http://www.w3.org/Bugs/Public/show_bug.cgi?id=2804

Thanks,
Marc
Comment 1 Andrew Eisenberg 2006-03-02 13:14:09 UTC
Agreed. In section 3.2, Path Expressions, XQuery says:

"Each operation E1/E2 is evaluated as follows: Expression E1 is evaluated, and
if the result is not a (possibly empty) sequence of nodes, a type error is
raised [err:XPTY0019]."
Comment 2 Carmelo Montanez 2006-03-10 22:13:48 UTC
Mark:

Correct.  I changed the test to remove the path.  Please close the bug if in agreement and able to verify.  New query reads:

"(1 to 100)[fn:base-uri()]"

Thanks,
Carmelo
Comment 3 Marc Van Cappellen 2006-05-17 22:15:16 UTC
verified and looks ok