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 2963 - last-2.xq expects FONC0001?
Summary: last-2.xq expects FONC0001?
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: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-02 11:50 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:50:48 UTC
last-2.xq reads as follows:

(: Description: Evaluation of "fn:last", where the context node is not 
defined. :)
employee[last() = 13]

Today we report XPDY0002 as the employee expression relies on the context item, 
which is not declared.
We believe this query should be modified.

FYI - this is very similar to http://www.w3.org/Bugs/Public/show_bug.cgi?
id=2416 which has been fixed already.
Comment 1 Carmelo Montanez 2006-03-22 16:10:55 UTC
Hey Marc:

Thanks for the comment.  I changed the query to 
"last()", This should generate the correct error code
as documented.  Please close the bug if in agreement and when able to verify
with next release.

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