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="" xmlns:edit="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="edit:login('testuser', 'test')">
<xsl:when test="edit:checkOut(">The element was checked out..</xsl:when>
<xsl:otherwise>The element could not be checked out.</xsl:otherwise>
<xsl:value-of select="edit:logout()" />
Checking-out document