This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
This issue covers queries InsertExpressions/id-insert-expr-064.xq, id-insert-expr-065.xq, id-insert-expr-066.xq and id-insert-expr-068.xq For example, InsertExpressions/id-insert-expr-064.xq is as follows: (: Name: id-insert-expr-064 :) (: Description: Insert an attribute into a comment. :) declare variable $input-context external; let $n := ($input-context//comment())[1] return insert node attribute day { "good" } into $n These queries only accept XUTY0022 as allowed error. The error XUTY0005 should also be allowed (http://www.w3.org/TR/2008/CR-xquery-update-10-20080801/#id-insert bullet 2.b): If any form of into is specified, the result must be a single element or document node; any other non-empty result raises a type error [err:XUTY0005].
I've made the changes that you have suggested.