Changes

Jump to navigation Jump to search
719 bytes added ,  20:46, 4 December 2013
return $c
</pre>
 
====update====
 
<pre class="brush:xquery">
for $item in db:open('data')//item
return $item update delete node text()
</pre>
 
The {{Code|update}} expression is a convenience operator for writing simple transform expressions.
Similar to the [[XQuery 3.0#Simple Map Operator|XQuery 3.0 map operator]], the value of the first
expression is bound as context item, and the second expression performs updates on this item.
The updated item is returned as result. The first example of the [[#transform|transform]]
expression.
 
Please note that {{Code|update}} is not part of the official XQuery Update Facility yet.
It is currently being discussed in the [https://www.w3.org/Bugs/Public/show_bug.cgi?id=23643 W3 Bug Tracker].
===Functions===
Bureaucrats, editor, reviewer, Administrators
13,551

edits

Navigation menu