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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Performing Update Operations<br />

TCP/IP Illustrated III.<br />

StevensW.<br />

Addison-Wesley<br />

49.95<br />

)<br />

where $title = "TCP/IP Illustrated"<br />

do (<br />

replace $title/text()<br />

with string-join(($title/text(), "I. The Protocols"), " ")<br />

insert $i following $a )<br />

2<br />

Two delete operations on the same node:<br />

update for $a in input()//doctor<br />

do ( delete $a<br />

delete $a)<br />

Two rename operations on the same node:<br />

update for $a in input()//doctor<br />

do ( rename $a as surgeon<br />

rename $a as dentist )<br />

These conflicts cannot be resolved: both operations fail with the message INOXQE 6451.<br />

Security<br />

Apart from any conflicts, <strong>Tamino</strong> checks for each update operation whether the resulting documents<br />

may be written in that form by the user. If permission is not granted by <strong>Tamino</strong>, the operation is<br />

rejected.<br />

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

47

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

Saved successfully!

Ooh no, something went wrong!