Changes

Jump to navigation Jump to search
5 bytes added ,  15:47, 7 December 2010
no edit summary
# 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.
# 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>
#: Database: <pre><test/></pre>
#: Query: <pre>insert nodes <a/> into root(), delete nodes //a</pre>
update on a fragment, which would raise an error if applied on a database node.</p>
<blockquote>
<p><b>Query:</b> <codepre>insert node attribute id{'1'} into &lt;a id='0'/></codepre></p>
<p><b>Result:</b></p>
<p><b>File 'doc.xml':</b> <code>&lt;n id='1'/&gt;</code></p>
bueraucrat, Bureaucrats, editor, reviewer, Administrators
907

edits

Navigation menu