Skip to content

Instantly share code, notes, and snippets.

@MartijnR
Last active March 25, 2021 20:56
Show Gist options
  • Save MartijnR/92198f7897b99d03064fc688dce8e151 to your computer and use it in GitHub Desktop.
Save MartijnR/92198f7897b99d03064fc688dce8e151 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>language-test</h:title>
<model odk:xforms-version="1.0.0">
<itext>
<translation lang="English (en)">
<text id="/data/a:label">
<value>english</value>
</text>
</translation>
<translation lang="عربى (ar)">
<text id="/data/a:label">
<value>عربى</value>
</text>
</translation>
</itext>
<instance>
<data id="language-test">
<a/>
<meta>
<instanceID/>
</meta>
</data>
</instance>
<bind nodeset="/data/a" type="string"/>
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string"/>
</model>
</h:head>
<h:body>
<input ref="/data/a">
<label ref="jr:itext('/data/a:label')"/>
</input>
</h:body>
</h:html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment