Changes

Jump to navigation Jump to search
465 bytes added ,  18:39, 10 December 2010
===Non-Updating Expressions===
====transform====
 
<pre>
copy $c := doc('/doc.xml')//node[@id=1]
modify rename node $c as 'copyOfNode'
return $c
</pre>
 
The node element with @id=1 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 conveniently modify results and especially DOM nodes. This is a frequent issue beginning users are often confronted with.
===Functions===
administrator, Bureaucrats, editor, reviewer, Administrators
408

edits

Navigation menu