<?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:orx="http://openrosa.org/xforms/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <h:head>
    <h:title>fails</h:title>
    <model>
      <instance>
        <data id="fails">
          <calc1/>
          <calc11/>
          <cond1/>
          <meta>
            <instanceID/>
          </meta>
        </data>
      </instance>
      <bind nodeset="/data/calc1"  calculate="selected(/one)" relevant=" /data/cond1  = yes'" type="string"/>
      <bind nodeset="/data/calc11" calculate="concat('1', '3'" type="string" relevant="instance('not-there')/node"/>
      <bind nodeset="/data/cond1" type="string" constraint="fantasy-fn(/data/calc1)" required="2d"/>
      <bind nodeset="/data/meta/instanceID" calculate="concat('uuid:', uud())" readonly="true()" type="string"/>
    </model>
  </h:head>
  <h:body>
    <input ref="/data/cond1">
      <label>enter 'yes' to make calc1 relevant</label>
    </input>
  </h:body>
</h:html>
