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-069.xq, id-insert-expr-070.xq, id-insert-expr-071.xq, id-insert-expr-072.xq, id-insert-expr-073.xq, id-insert-expr-074.xq, id-insert-expr-075.xq, id-insert-expr-076.xq For example, InsertExpressions/id-insert-expr-069.xq is as follows: declare variable $input-context external; let $emp := <employee/> return insert node attribute test { "123" } before $emp These queries only accept XUDY0030 as allowed error. Since these queries test inserting using before/after, the error XUDY0029 should also be allowed (http://www.w3.org/TR/2008/CR-xquery-update-10-20080801/#id-insert bullet 2.d): If before or after is specified, the node returned by the target expression must have a non-empty parent property [err:XUDY0029].
I have made the changes that you suggested. I've also added new test cases to test inserting attributes before/after comment, PI, and element nodes that have a document parent: id-insert-expr-087 to -092