summaryrefslogtreecommitdiff
path: root/test/schemas/bug145246_0.xsd
blob: f51520d135c7c2e2bc8757e1e8a0b9a333a4958d (plain)
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" ?>
<!--  
 * $Id: bug145246_0.xsd,v 1.1 2004/08/10 14:17:33 veillard Exp $
 * @file   giml.xsd
 * @author Stefan Kost <ensonic@users.sf.net>
 * @date   Thu Jun 24 17:28:26 MEST 2004
 * 
 * @brief  giml document schema definition
 * @ingroup gitkcore
 *
-->
<xs:schema targetNamespace="http://gitk.sourceforge.net/"
		xmlns="http://gitk.sourceforge.net/"
		xmlns:xs="http://www.w3.org/2001/XMLSchema"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:i18n="http://apache.org/cocoon/i18n/2.0/">
	<xs:annotation>
		<xs:documentation>
			This schema describes giml dialog sources
		</xs:documentation>
  </xs:annotation>

  <xs:import namespace="http://purl.org/dc/elements/1.1/"
		schemaLocation="bug145246.xsd.imp"
	/>
  <!--xs:import namespace="http://apache.org/cocoon/i18n/2.0/"
		schemaLocation="file://./i18n.xsd"
	/-->
 
 <!-- foreign namespace
	 <xs:element name="title">
			<xs:complexType mixed="true">
				<xs:choice minOccurs="0" maxOccurs="unbounded">
				</xs:choice>
			</xs:complexType>
		</xs:element>
	
		<xs:element name="text">
			<xs:complexType mixed="true"></xs:complexType>
		</xs:element>
 -->
	
	<xs:element name="option">
		<xs:complexType mixed="true">
			<xs:choice minOccurs="0" maxOccurs="unbounded"></xs:choice>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="options">
		<xs:complexType>
			<xs:sequence minOccurs="0" maxOccurs="unbounded">
				<xs:element ref="option"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="disabled">
		<xs:complexType mixed="true"></xs:complexType>
	</xs:element>
	
	<xs:element name="required">
		<xs:complexType mixed="true"></xs:complexType>
	</xs:element>
	
	<xs:element name="value">
		<xs:complexType mixed="true"></xs:complexType>
	</xs:element>
	
	<xs:element name="label">
		<xs:complexType mixed="true">
			<xs:choice minOccurs="0" maxOccurs="1"></xs:choice>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="widget">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="meta" minOccurs="0"/>
				<xs:element ref="label" minOccurs="0"/>
				<xs:element ref="disabled" minOccurs="0"/>
				<xs:element ref="value" minOccurs="0"/>
				<xs:element ref="options" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute name="id" type="xs:ID"/>
			<xs:attribute name="type" default="action">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="action"/>
						<xs:enumeration value="characterinput"/>
						<xs:enumeration value="characterinput_numeric"/>
						<xs:enumeration value="characterinput_alphabetic"/>
						<xs:enumeration value="optionchoice"/>
						<xs:enumeration value="optionchoice_boolean"/>
						<xs:enumeration value="optionchoice_single"/>
						<xs:enumeration value="optionchoice_single_compact"/>
						<xs:enumeration value="label"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
			<xs:attribute name="hasFocus" default="false">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="true"/>
						<xs:enumeration value="false"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="widgetgroup">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="meta" minOccurs="0"/>
				<xs:element ref="label" minOccurs="0"/>
				<xs:element ref="widget" minOccurs="0" maxOccurs="unbounded"/>
				<xs:element ref="widgetgroup" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="dialogwidget">
		<xs:complexType mixed="true">
			<xs:attribute name="id" type="xs:ID"/>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="dialogwidgets">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="dialogwidget" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="meta">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="dc:title"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="dialog">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="meta" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="dialogwidgets" minOccurs="0" maxOccurs="1"/>
				<xs:element ref="widgetgroup" minOccurs="1" maxOccurs="unbounded"/>
			</xs:sequence>
			<xs:attribute name="id" type="xs:ID"/>
			<xs:attribute name="focus" default="main">
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:enumeration value="main"/>
						<xs:enumeration value="ctrl"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:attribute>
		</xs:complexType>
	</xs:element>
	
	<xs:element name="giml">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="dialog" minOccurs="1" maxOccurs="1"/>
			</xs:sequence>
			<!--xs:attribute name="xmlns" type="xs:string" fixed="http://gitk.sourceforge.net/"/-->
		</xs:complexType>
	</xs:element>

</xs:schema>