renameObject (target : xlink, newName : string) : boolean

Elements can be renamed with the method “renameObject”. In order to do this however, the user with whom this action is executed must have the authorization to work on this element.

<xsl:stylesheet xmlns:xsl="" xmlns:edit="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="edit:login('testuser', 'test')">
<xsl:when test="edit:renameObject(, 'neuer Name')">The element was renamed.</xsl:when>
<xsl:otherwise>The element could not be renamed.</xsl:otherwise>
<xsl:value-of select="edit:logout()" />
Renaming a document