Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Created September 11, 2018 22:33
Show Gist options
  • Save MartijnR/1c8b245026a40f6fdceab342a2ed8222 to your computer and use it in GitHub Desktop.
Save MartijnR/1c8b245026a40f6fdceab342a2ed8222 to your computer and use it in GitHub Desktop.
<?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>pyxform_autotesttitle</h:title>
<model>
<itext>
<translation default="true()" lang="default">
<text id="/data/name:hint">
<value>your name</value>
<value form="guidance">as shown on birth certificate</value>
</text>
</translation>
<translation lang="French (fr)">
<text id="/data/name:hint">
<value form="guidance">comme sur le certificat de naissance</value>
<value>-</value>
</text>
</translation>
</itext>
<instance>
<data id="pyxform_autotest_id_string">
<name/>
<meta>
<instanceID/>
</meta>
</data>
</instance>
<bind nodeset="/data/name" type="string"/>
<bind calculate="concat('uuid:', uuid())" nodeset="/data/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/data/name">
<label>Name</label>
<hint ref="jr:itext('/data/name:hint')"/>
</input>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment