===Function Declaration===
To use updating expressions within a function, the '{{Code|%updating' flag }} annotation has to be added to the function declaration. A correct declaration of a function that contains updating expressions (or one that calls updating functions) looks like this:
<pre class="brush:xquery">