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

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

If an element is to be renamed, the method “renameObject” offers the possibility of renaming the element by specifying the xlink and the new name.

<xsl:stylesheet xmlns:app="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:variable name="object">onion://data/objects/100</xsl:variable>
<xsl:variable name="objectName">new Objectname</xsl:variable>
<xsl:choose>
<xsl:when test="app:renameObject($object, $objectName)"> The object was renamed. </xsl:when>
<xsl:otherwise> Das Objekt konnte nicht umbenannt werden. </xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>