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

canDelete (target : xlink) : boolean

The method “canDelete” checks whether the logged-in user has the authorization to delete the specified element.

If the user is allowed to delete the element, then “true” is returned.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:user="http://onionworks.net/2006/data/personalization" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
<xsl:if test="user:login('testuser', 'test')">
<xsl:value-of select="user:canDelete(c.id())" />
<xsl:value-of select="user:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Rights check: Deleting document