This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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
Agreed. I've made this change.