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

getUser (username : string) : nodeset

The method “getUser” returns information about the specified user. The logged-in user must be the user administrator for this, so that information about the specified user is returned.

There is at least the element “userinfo” as a result, whereby the user-related attributes are not present if the logged-in user is not a user manager.

If the logged-in user would like to have the information about his own user however, the method “getCurrentEditor” can also be used. The user does not have to be the user administrator for this.

<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:copy-of select="edit:getUser('testuser2')" />
<xsl:value-of select="edit:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Retrieving information of a user

The called method supplies the following XML as a result:

<userinfo username="testuser" id="123">
<group>Users</group>
</userinfo>
Result from the example