</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 modify results and especially DOM nodes. This is a frequent issue beginning users are often confronted with. More on this topic can be found in the [[Update#Returning Results|XQUF Concepts]]section.
===Functions===