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