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

checkIn (target : xlink, [force : boolean]) : boolean

The method “checkIn” returns a checked-out element.

If the user does not have the right to work on the document, then the document cannot be returned. The document can also not be returned if the document is still checked-out by another user and the logged-in user is not allowed to return documents of other users.

If the document was successfully returned, then the value “true” is returned, otherwise the value “false”.

<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:checkIn($id)">The element was checked in.</xsl:when>
<xsl:otherwise>The element could not checked in.</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="edit:logout()" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Returning document