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

undoCheckOut (target : xlink) : boolean

If changes to checked-out elements are to be discarded, there is the method “undoCheckOut”. If this method is executed, the element is again in the version in which it was last checked in.

<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:if test="app:undoCheckOut(c.id())"> Discarding changes to the object. </xsl:if>
</xsl:template>
</xsl:stylesheet>
Discarding changes to the object