<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>trigger_col</h:title>
<model odk:xforms-version="1.0.0">
<instance>
<data id="trigger_col">
<age/>
<age_copy/>
<cleared/>
<meta>
<instanceID/>
</meta>
</data>
</instance>
<bind nodeset="/data/age" type="int"/>
<bind nodeset="/data/age_copy" type="string"/>
<bind nodeset="/data/cleared" type="string"/>
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/data/age">
<label>Age?</label>
<setvalue event="xforms-value-changed" ref="/data/age_copy" value=" /data/age * 2"/>
<setvalue event="xforms-value-changed" ref="/data/cleared"/>
</input>
<input ref="/data/age_copy">
<label>Copy</label>
</input>
<input ref="/data/cleared">
<label>Cleared on change</label>
</input>
</h:body>
</h:html>