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

setDisplayName ([userReference : xlink], name : string) : void

The method "setDisplayName" sets the display name for a user.

The parameter “userReference” specifies for which user the display name is to be set. If an empty character string is specified for the parameter “name”, then the display name for the user is removed.

In order to set the display name, the user with which the method is being executed must at least be the user administrator. The rule still applies that the display name can be only set if the executing user has more rights (e.g. administrator) than the user to be revised.

<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:value-of select="user:setDisplayName('onion://usermanagement/users/123', 'Display name')" />
</xsl:template>
</xsl:stylesheet>
Setting display name
<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:value-of select="user:setDisplayName('onion://usermanagement/users/123', '')" />
</xsl:template>
</xsl:stylesheet>
Removing display name