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

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="http://www.w3.org/1999/XSL/Transform" xmlns:edit="http://onionworks.net/2006/data/editing" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="edit:login('testuser', 'test')">
<xsl:choose>
<xsl:when test="edit:renameObject(c.id(), 'neuer Name')">The element was renamed.</xsl:when>
<xsl:otherwise>The element could not be renamed.</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="edit:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Renaming a document