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

memberOf (userReference : xlink, groupReference : string) : boolean

The method “memberOf” checks whether a user is a direct or - via a group include - indirect member of a group.

The parameter “userReference” specifies for which user the membership is to be checked.

This method also supplies “false” if the specified group or user are not present or the executing user is not logged onto the system.

<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="app:memberOf('onion://usermanagement/users/12', 'onion://usermanagement/groups/1')" />
</xsl:template>
</xsl:stylesheet>
Test membership