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 6364 - Context Item is required for id-rename-expr-012/013
Summary: Context Item is required for id-rename-expr-012/013
Status: CLOSED FIXED
Alias: None
Product: XQuery Update Facility Test Suite
Classification: Unclassified
Component: XQuery Update Facility Test Suite (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 10:26 UTC by Peter M. Fischer
Modified: 2009-01-06 22:58 UTC (History)
0 users

See Also:


Attachments

Description Peter M. Fischer 2009-01-06 10:26:22 UTC
id-rename-expr-012, 013 use the expression

xs:int(salary) + 1 

as target/name for a rename. 

No context item is set, so we might get XPDY0002, unless
some static analysis is done, which is not mentioned in the spec.
Changing to xs:int($var/salary) + 1 should fix this, and probably was
intended.

If indeed static analysis should be used, this should be made more explicit in the spec
Comment 1 Andrew Eisenberg 2009-01-06 22:57:44 UTC
I've made the changes that you suggested, changing the expression to xs:int($var/salary[1]) + 1.