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="" xmlns:app="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="app:moveObject(, 'onion://data/objects/1')"> The element has been moved. </xsl:if>
Moving a document