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 6365 - Error Code of id-rename-025
Summary: Error Code of id-rename-025
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 Windows NT
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-06 10:34 UTC by Peter M. Fischer
Modified: 2009-01-07 15:44 UTC (History)
0 users

See Also:


Attachments

Description Peter M. Fischer 2009-01-06 10:34:49 UTC
In id-rename-025
A name Expression in an attribute renaming returns a number:

rename node $var/@name as 12

I'd expect err:XPTY0004, since the spec says (in 2.4.4, 2b) that the semantics of computed attribute constructors should be used. In XQuery 1.0, 3.7.3.2 Computed Attribute Constructors it is stated that this error should thrown if after atomization not a single element of type QName, string, untypedAtomic is seen - and we have an xs:integer here.

Currently, this is a XQDY0074, while id-rename-024 (dealing with element
renaming) results in err:XPTY0004
Comment 1 Andrew Eisenberg 2009-01-07 15:44:50 UTC
Agreed. I've made this change.