Changes

Jump to navigation Jump to search
333 bytes removed ,  14:57, 16 January 2017
The {{Code|update}} expression is a BaseX-specific convenience operator for the {{Code|copy/modify/return}}
construct. : * 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. An example:
<pre class="brush:xquery">
</pre>
With {{Version|8.5}}, the update expression was extended: * More than one node can now be specified as source:
<pre class="brush:xquery">
</pre>
* In analogy with [[#transform with|transform with]], the updating expressions should now be If wrapped with curly braces. * Update , update expressions can now be chained:
<pre class="brush:xquery">
}
</pre>
 
Please note that the curly braces are mandatory here. Otherwise, the second {{Code|update}} keyword would be associated with the context item expression {{Code|.}}.
===transform with===
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu