Changes

Jump to navigation Jump to search
25 bytes added ,  17:09, 1 March 2011
</pre>
The node element with <code>@id=1 </code> is copied and subsequently assigned a new QName using the rename expression. Note that the transform expression is the only expression which returns an actual XDM instance as a result. You can therefor use it to modify results and especially DOM nodes. This is an issue beginners are often confronted with. More on this topic can be found in the [[Update#Returning Results|XQUF Concepts]] section.
The following example gives another example:
</pre>
The <code><entry></code> element (here it is passed to the expression as a DOM node) can also be replaced by a database node, e.g.:
<pre class="brush:xquery">
copy $c := (db:open('example')//entry)[1])
...
</pre>
Bureaucrats, editor, reviewer, Administrators
13,554

edits

Navigation menu