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

An object should always be returned if editing it is complete (for the time being). In order to return documents automatically, the function “checkIn()” is available.

The XLink of the element to be checked in again must be transferred to the method. The return value of the method indicates whether the check-in worked.

If the logged-in user has user administration rights, then he can specify the second parameter “force” in order to return documents which are checked out by other users.

It is shown in the example how an element is first checked-out and then returned again. The check-out is performed via the method “checkOut()".

<xsl:stylesheet xmlns:app="" xmlns:xsl="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="app:checkOut(">
<xsl:value-of select="'The element was checked out and ist ready to be modified.'" />
<xsl:if test="app:checkIn(">
<xsl:value-of select="'The element is now checked in again.'" />
Check-out and the subsequent returning of a document