-
Notifications
You must be signed in to change notification settings - Fork 0
/
example_survey.xml
executable file
·92 lines (71 loc) · 2.23 KB
/
example_survey.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
92
<?xml version="1.0" encoding="UTF-8"?>
<survey id="pipo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
xsi:noNamespaceSchemaLocation="/home/dokter/Work/w20e/socrates/survey.xsd">
<data>
<vargroup name="xx">
<var name="bar" />
<var name="foo">1</var>
<vargroup name="yy">
<var name="pipo" />
</vargroup>
</vargroup>
<var name="zzz" />
</data>
<model>
<properties id="sdcscsdc">
<bind>bzzz</bind>
</properties>
<properties id="p0">
<bind>u_.*</bind>
<relevant>bar > 666</relevant>
<required>1</required>
<readonly></readonly>
<calculate></calculate>
<constraint></constraint>
<datatype></datatype>
</properties>
<properties id="p1">
<bind>foo</bind>
<relevant>bar > 666</relevant>
</properties>
</model>
<layout>
<optionset id="yesno">
<option value="1"><label i18n:trans="">yes</label></option>
<option value="0"><label i18n:trans="">no</label></option>
</optionset>
<group id="grp0" layout="page">
<label i18n:translate="">This is a group</label>
<hint></hint>
<text>Some text... even with a <a href="#">tag</a> and some text
</text>
<select bind="bar" id="pan">
<label i18n:translate="">Pick a number</label>
<option value="1"><label>1</label></option>
<option><label>2</label></option>
<option value="666"><label>666</label></option>
</select>
<select bind="bar" id="pan">
<label i18n:translate="">And another</label>
<optionset href="file:./options.xml" />
</select>
<select bind="bar" id="pan">
<label i18n:translate="">oh yeah?</label>
<optionset ref="yesno" />
</select>
<input id="reallyx" bind="bar">
<property name="widget">someother</property>
<label i18n:translate="really">Really?</label>
<hint></hint>
<help></help>
</input>
<control id="zzz" bind="bar">
<property name="widget">someother</property>
<label i18n:translate="really">Really?</label>
</control>
</group>
</layout>
<submission></submission>
</survey>