<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa">
  <h:head>
    <h:title>ODKSample</h:title>
    <model>
      <instance>
        <data id="ODKsample">
          <name/>
          <age/>
          <date/>
          <location/>
          <photo/>
          <organization_primary/>
          <organization_secondary/>
        </data>
      </instance>
      <itext>
        <translation lang="eng">
          <text id="/data/name:label">
            <value>Enter your name</value>
          </text>
          <text id="/data/name:hint">
            <value>Your name is what you were given at birth by your parents</value>
          </text>
          <text id="/data/age:label">
            <value>Enter your age</value>
          </text>
          <text id="/data/age:hint">
            <value>how old are you?</value>
          </text>
          <text id="/data/date:label">
            <value>Enter today's date</value>
          </text>
          <text id="/data/date:hint">
            <value/>
          </text>
          <text id="/data/location:label">
            <value>Capture GPS Location</value>
          </text>
          <text id="/data/location:hint">
            <value/>
          </text>
          <text id="/data/photo:label">
            <value>Take a photo</value>
          </text>
          <text id="/data/photo:hint">
            <value>get the entire image in the viewfinder</value>
          </text>
          <text id="/data/organization_primary:label">
            <value>What is the primary focus of your organization?</value>
          </text>
          <text id="/data/organization_primary:hint">
            <value>Choose one.</value>
          </text>
          <text id="/data/organization_primary:option0">
            <value>Arts, Humanitites, Culture</value>
          </text>
          <text id="/data/organization_primary:option1">
            <value>Health and Human Services</value>
          </text>
          <text id="/data/organization_primary:option2">
            <value>Environment and Conservation</value>
          </text>
          <text id="/data/organization_primary:option3">
            <value>Humanitarian and Disaster Relief</value>
          </text>
          <text id="/data/organization_primary:option4">
            <value>Legal and Justice</value>
          </text>
          <text id="/data/organization_primary:option5">
            <value>Urban Planning and Restoration</value>
          </text>
          <text id="/data/organization_secondary:label">
            <value>What is the secondary focus of your organization?</value>
          </text>
          <text id="/data/organization_secondary:hint">
            <value>Check as many apply to your organization</value>
          </text>
          <text id="/data/organization_secondary:option0">
            <value>Arts, Culture, Education</value>
          </text>
          <text id="/data/organization_secondary:option1">
            <value>Health and Human Services</value>
          </text>
          <text id="/data/organization_secondary:option2">
            <value>Environment and Conservation</value>
          </text>
          <text id="/data/organization_secondary:option3">
            <value>Humanitarian or Disaster Relief</value>
          </text>
          <text id="/data/organization_secondary:option4">
            <value>Legal and Justice</value>
          </text>
          <text id="/data/organization_secondary:option5">
            <value>Urban Planning and Restoration</value>
          </text>
        </translation>
      </itext>
      <bind nodeset="/data/name" type="string" required="true()"/>
      <bind nodeset="/data/age" type="int"/>
      <bind nodeset="/data/date" type="date"/>
      <bind nodeset="/data/location" type="geopoint"/>
      <bind nodeset="/data/photo" type="binary"/>
      <bind nodeset="/data/organization_primary"/>
      <bind nodeset="/data/organization_secondary"/>
    </model>
  </h:head>
  <h:body>
    <input ref="name">
      <label ref="jr:itext('/data/name:label')"/>
      <hint ref="jr:itext('/data/name:hint')"/>
    </input>
    <input ref="age">
      <label ref="jr:itext('/data/age:label')"/>
      <hint ref="jr:itext('/data/age:hint')"/>
    </input>
    <input ref="date">
      <label ref="jr:itext('/data/date:label')"/>
      <hint ref="jr:itext('/data/date:hint')"/>
    </input>
    <input ref="location">
      <label ref="jr:itext('/data/location:label')"/>
      <hint ref="jr:itext('/data/location:hint')"/>
    </input>
    <upload ref="photo" mediatype="image/*">
      <label ref="jr:itext('/data/photo:label')"/>
      <hint ref="jr:itext('/data/photo:hint')"/>
    </upload>
    <select1 ref="organization_primary">
      <label ref="jr:itext('/data/organization_primary:label')"/>
      <hint ref="jr:itext('/data/organization_primary:hint')"/>
      <item>
        <label ref="jr:itext('/data/organization_primary:option0')"/>
        <value>arts</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_primary:option1')"/>
        <value>hhs</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_primary:option2')"/>
        <value>env</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_primary:option3')"/>
        <value>humanitarian</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_primary:option4')"/>
        <value>legal</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_primary:option5')"/>
        <value>urban</value>
      </item>
    </select1>
    <select ref="organization_secondary">
      <label ref="jr:itext('/data/organization_secondary:label')"/>
      <hint ref="jr:itext('/data/organization_secondary:hint')"/>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option0')"/>
        <value>arts</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option1')"/>
        <value>hhs</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option2')"/>
        <value>env</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option3')"/>
        <value>humanitarian</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option4')"/>
        <value>legal</value>
      </item>
      <item>
        <label ref="jr:itext('/data/organization_secondary:option5')"/>
        <value>urban</value>
      </item>
    </select>
  </h:body>
</h:html>
