http://onionworks.net/2006/data/application
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="http://onionworks.net/2006/data/application" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:onion="http://onionworks.net/2004/data" version="1.0">
<xsl:template match="/">
</xsl:stylesheet><xsl:if test="app:checkOut(c.id())">
</xsl:template><xsl:value-of select="'The element was checked out and ist ready to be modified.'" />
<xsl:if test="app:checkIn(c.id())">
</xsl:if><xsl:value-of select="'The element is now checked in again.'" />
</xsl:if>Check-out and the subsequent returning of a document