-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path2-all-possible-notes.xml
91 lines (91 loc) · 4.06 KB
/
2-all-possible-notes.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<?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" xmlns:orx="http://openrosa.org/xforms"
xmlns:odk="http://www.opendatakit.org/xforms">
<h:head>
<h:title>Notes</h:title>
<model odk:xforms-version="1.0.0">
<instance>
<data id="notes" version="20240802121047">
<group>
<intro />
<note_w_hint />
<note_hint_only />
<note_w_default>A value</note_w_default>
<note_w_calculation />
<note_w_masked_appearance />
<note_w_ex_appearance />
<read_only_int />
<read_only_int_value>3</read_only_int_value>
<note_calc_decimal_from_int />
<date_note>2025-12-21T23:30:05</date_note>
<geopoint_note>38.253094215699576 21.756382658677467 0 150</geopoint_note>
</group>
<meta>
<instanceID />
</meta>
</data>
</instance>
<bind nodeset="/data/group/intro" readonly="true()" type="string" />
<bind nodeset="/data/group/note_w_hint" readonly="true()" type="string" />
<bind nodeset="/data/group/note_hint_only" readonly="true()" type="string" />
<bind nodeset="/data/group/note_w_default" readonly="true()" type="string" />
<bind nodeset="/data/group/note_w_calculation" readonly="true()" type="string"
calculate="concat("A ", "value")" />
<bind nodeset="/data/group/note_w_masked_appearance" readonly="true()" type="string" />
<bind nodeset="/data/group/note_w_ex_appearance" readonly="true()" type="string" />
<bind nodeset="/data/group/read_only_int" type="int" readonly="true()" />
<bind nodeset="/data/group/read_only_int_value" type="int" readonly="true()" />
<bind nodeset="/data/group/note_calc_decimal_from_int" type="decimal"
calculate="/data/group/read_only_int_value + 1.5" readonly="true()" />
<bind nodeset="/data/group/date_note" type="date" readonly="true()" />
<bind nodeset="/data/group/geopoint_note" type="geopoint" readonly="true()" />
<bind nodeset="/data/meta/instanceID" type="string" readonly="true()" jr:preload="uid" />
</model>
</h:head>
<h:body>
<group appearance="field-list" ref="/data/group">
<input ref="/data/group/intro">
<label>This form illustrates the note concept in ODK. This is not a concept that exists in
the underlying ODK XForms spec, it's introduced by XLSForm and discussed informally.
Typically a note only has a label.</label>
</input>
<input ref="/data/group/note_w_hint">
<label>A note with a hint</label>
<hint>This is a hint</hint>
</input>
<input ref="/data/group/note_hint_only">
<label></label>
<hint>Hint-only note</hint>
</input>
<input ref="/data/group/note_w_default">
<label>A note with a default value</label>
</input>
<input ref="/data/group/note_w_calculation">
<label>A note with a calculation</label>
</input>
<input appearance="masked" ref="/data/group/note_w_masked_appearance">
<label>A note with masked appearance</label>
</input>
<input appearance="ex:my.cool.app()" ref="/data/group/note_w_ex_appearance">
<label>A note with external app appearance</label>
</input>
<input ref="/data/group/read_only_int">
<label>A readonly integer</label>
</input>
<input ref="/data/group/read_only_int_value">
<label>A readonly integer with value</label>
</input>
<input ref="/data/group/note_calc_decimal_from_int">
<label>A note with decimal type calculated from int</label>
</input>
<input ref="/data/group/date_note">
<label>A note with date type</label>
</input>
<input ref="/data/group/geopoint_note">
<label>A note with geopoint type</label>
</input>
</group>
</h:body>
</h:html>