updateObject (target : xlink, newContent : nodeset) : boolean

After editing elements, the contents should be also saved. The method “updateObject” is provided for this.
This method saves changes to an existing object.

For the parameter “newContent”, an XML fragment is transferred which represents the type to be saved.

<xsl:stylesheet xmlns:app="" xmlns:onion="" xmlns:xsl="" version="1.0">
<xsl:template match="/">
<xsl:variable name="content">
<post onion:schema="Onion:"> Lorem ipsum dolor sit amet, consectetuer adipiscing elit </post>
<xsl:if test="app:checkOut(">
<xsl:when test="app:updateObject(, $content)"> The changes were saved successfuly.
<app:checkIn id="{}" />
<xsl:otherwise> The changes could not be saved.
<app:undoCheckOut id="{}" />
Updating a guest book entry