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

checkOut (target : xlink) : boolean

The method “checkout” checks out the specified element to the logged-in user. So that the element can be checked out, the user must be allowed to work on the document.

If the document cannot be checked out, the value “false” is returned, otherwise the value “true”.

<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:choose>
<xsl:when test="edit:checkOut(c.id())">The element was checked out..</xsl:when>
<xsl:otherwise>The element could not be checked out.</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="edit:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Checking-out document