25.12.2013 Views

Tamino XQuery User Guide - Software AG Documentation

Tamino XQuery User Guide - Software AG Documentation

Tamino XQuery User Guide - Software AG Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Performing Update Operations<br />

Note: In any of these conflict cases, the update operation is rejected by <strong>Tamino</strong>.<br />

The following tables summarize the possible conflicts. The first table shows the conflicts for operations<br />

on one element node, the other two are subsets of the first table, since not all operations can<br />

be performed on any kind of node. As an example, if you use a replace operation and an insert<br />

preceding operation on the same element node, conflict 2 arises. If you try to delete and replace<br />

the same comment node in a single update operation, conflicts 1a and 2 arise.<br />

Operations on one element<br />

node<br />

delete<br />

replace<br />

rename<br />

insert<br />

insert<br />

insert<br />

insert<br />

attribute<br />

into<br />

preceding<br />

following<br />

delete<br />

2<br />

1a and 2<br />

2<br />

2<br />

2<br />

2<br />

2<br />

replace<br />

1a and 2<br />

2<br />

2<br />

2<br />

2<br />

2<br />

rename<br />

1a<br />

—<br />

—<br />

—<br />

—<br />

insert attribute<br />

1b<br />

—<br />

—<br />

—<br />

insert into<br />

1a<br />

—<br />

—<br />

insert preceding<br />

1c<br />

—<br />

insert following<br />

1c<br />

Operations on one attribute or PI node<br />

delete<br />

replace<br />

rename<br />

delete<br />

2<br />

1a and 2<br />

2<br />

replace<br />

1a and 2<br />

2<br />

rename<br />

1a<br />

Operations on one node of some other kind<br />

delete<br />

replace<br />

delete<br />

2<br />

replace<br />

1a and 2<br />

1a and 2<br />

44<br />

<strong>XQuery</strong> <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!