http://onionworks.net/2006/data/application

moveObject (target : xlink, newParent : string) : boolean

The method “moveObject” makes it possible to move existing objects in the structure. In order to do this, the specific XLink and the XLink of the new parent element just need to be specified.
The element is moved here on the assumption that the element may be a child element of the new parent element. If this is not yet the case, then the necessary adjustment must be made in the schema editor.

The following example shows the moving of an element under the system root:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:app="http://onionworks.net/2006/data/application" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="app:moveObject(c.id(), 'onion://data/objects/1')"> The element has been moved. </xsl:if>
</xsl:template>
</xsl:stylesheet>
Moving a document