forked from getodk/sample-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Bugs.xml
54 lines (53 loc) · 1.81 KB
/
Bugs.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0"?>
<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>Bugs</h:title>
<model>
<instance>
<!-- submitted data and defaults go here -->
<data id="bugs">
<trailing_whitespace>trailing white space</trailing_whitespace>
<output_in_hint/>
<output_label>label</output_label>
<output_hint>hint</output_hint>
<select_2/>
</data>
</instance>
<!-- add properties to the questions, like data types, skip logic, and constraints -->
<bind nodeset="/data/trailing_whitespace" type="string" />
<bind nodeset="/data/output_in_hint" type="string"/>
<bind nodeset="/data/select_2" type="select"/>
</model>
</h:head>
<h:body>
<!-- define the questions that the user will fill out -->
<input ref="trailing_whitespace">
<label>
according to w3 spec, trailing spaces should be removed </label>
<hint>hello world</hint>
</input>
<input ref="output_in_hint">
<label>label output in <output value="/data/output_label"/></label>
<hint>hint output in <output value="/data/output_hint"/></hint>
</input>
<select ref="select_2">
<label>select multiple widget</label>
<hint>don't pick c and d together</hint>
<item>
<label>option <output value="/data/output_hint"/></label>
<value>a</value>
</item>
<item>
<label>option b</label>
<value>b</value>
</item>
<item>
<label>option c</label>
<value>c</value>
</item>
<item>
<label>option d</label>
<value>d</value>
</item>
</h:body>
</h:html>