Changes

Jump to navigation Jump to search
202 bytes added ,  10:25, 8 December 2010
no edit summary
# A XQuery Update query can never return a result. So you can't combine reading queries and updating queries into one query, even if they are separated with a comma.
#: Incorrect Query: <pre>for $i in 1 to 10 return $i, insert nodes <test/> into root()</pre>
# Updates of a XQuery Update query are not visible until the whole query is finished. So values generated by subqueries are not accessible in the other parts of the query. This is because XQuery Update uses a so-called [http://www.w3.org/TR/xquery-update-10/#id-processing-model pending update list] in the processing model and executes all updates at the end of the query.
# The order of XQuery Update functions in a query is irrelevant. There is a [http://www.w3.org/TR/xquery-update-10/#id-upd-apply-updates specification] which controls the execution order of the update functions.
#: <b>Example:</b>
bueraucrat, Bureaucrats, editor, reviewer, Administrators
907

edits

Navigation menu