getCurrentUserReference () : string

The method “getCurrentUserReference” returns an XLink to the user currently logged in. Further information on the user can be retrieved via this XLink. You will find further information in the section “DataViews".

The following example shows the method’s application:

<xsl:stylesheet xmlns:user="" xmlns:xsl="" xmlns:onion="" version="1.0">
<xsl:if test="user:login('testuser', 'test')">
<xsl:value-of select="user:getCurrentUserReference()" />
<xsl:value-of select="user:logout()" />
Retrieve reference to the logged-in user

The called method produces the following result:

Result from the example