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 6489 - Negative before/after insert tests should also accept XUTY0029
Summary: Negative before/after insert tests should also accept XUTY0029
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 XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-29 09:47 UTC by Wouter Cordewiner
Modified: 2009-02-06 21:47 UTC (History)
1 user (show)

See Also:


Attachments

Description Wouter Cordewiner 2009-01-29 09:47:18 UTC
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]. 
Comment 1 Andrew Eisenberg 2009-02-06 21:46:44 UTC
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