undoCheckOut (target : xlink) : boolean

The checked-out document is discarded with “undoCheckOut”. This means that all changes made since the last checkIn are not saved. If the document has not yet been returned by this point, then it is deleted.

<xsl:stylesheet xmlns:xsl="" xmlns:edit="" xmlns:onion="" version="1.0">
<xsl:template match="/">
<xsl:if test="edit:login('testuser', 'test')">
<xsl:if test="edit:undoCheckOut(">The document was discarded.</xsl:if>
<xsl:value-of select="edit:logout()" />
Discarding a document