# 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 <a id='0'/></codepre></p>
<p><b>Result:</b></p>
<p><b>File 'doc.xml':</b> <code><n id='1'/></code></p>