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 6488 - Negative insert into tests should also accept XUTY0005
Summary: Negative insert into tests should also accept XUTY0005
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:44 UTC by Wouter Cordewiner
Modified: 2009-02-06 19:41 UTC (History)
1 user (show)

See Also:


Attachments

Description Wouter Cordewiner 2009-01-29 09:44:00 UTC
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]. 
Comment 1 Andrew Eisenberg 2009-02-06 19:41:40 UTC
I've made the changes that you have suggested.