[Bug 5313] [UPD] Can inserting an attribute replace an existing an attribute?

http://www.w3.org/Bugs/Public/show_bug.cgi?id=5313





------- Comment #1 from chamberl@almaden.ibm.com  2007-12-10 17:38 -------
My interpretation is as follows:
(1) The Insert expression generates an upd:insertAttributes primitive on the
Pending Update List (PUL). (See Section 2.4.1)

(2) At the end of the snapshot, upd:applyUpdates is invoked, causing the
upd:insertAttributes primitive to be applied. At this moment, the parent
element has two attributes with the same name. (See Section 3.1.6)

(3) In Step 5 (formerly Step 6) of upd:applyUpdates, the XDM instance is
checked for violation of data model constraints. Two attributes with the same
name and parent violate a data model constraint, so the query terminates with
XUDY0021. Since updates are applied atomically, the resulting XDM is unchanged.
(See Section 3.2.2)

Regards,
Don Chamberlin (speaking for myself)

Received on Monday, 10 December 2007 17:38:44 UTC