blob: 61450d25916e93741bd8288d5c359919eaea6d96 (
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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
|
<?xml version="1.0" encoding="UTF-8" ?>
<!-- kcfg XSD v1.0 -->
<xsd:schema
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:kcfg="http://www.kde.org/standards/kcfg/1.0"
targetNamespace="http://www.kde.org/standards/kcfg/1.0"
version="1.0"
elementFormDefault="qualified" >
<xsd:annotation>
<xsd:documentation>
Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org>
Copyright (c) 2003 Waldo Bastian <bastian@kde.org>
Copyright (c) 2003 Zack Rusin <zack@kde.org>
Copyright (c) 2004 Frans Englich <frans.englich@telia.com>
Permission to use, copy, modify and distribute this DTD
and its accompanying documentation for any purpose and without fee
is hereby granted in perpetuity, provided that the above copyright
notice and this paragraph appear in all copies. The copyright
holders make no representation about the suitability of the DTD for
any purpose. It is provided "as is" without expressed or implied
warranty.
</xsd:documentation>
</xsd:annotation>
<xsd:annotation>
<xsd:documentation>
A Schema for KDE's KConfigXT XML format. It is similar to the DTD
found at:
http://www.kde.org/standards/kcfg/1.0/kcfg.dtd
Documents valid against the Schema version are backwards compatible
to the DTD. Validating against the Schema instead of the DTD is
recommended, since the former provides better validation.
A document instance of this Schema should have a declaration
looking like this:
<![CDATA[
<?xml version="1.0" encoding="UTF-8" ?>
<kcfg xmlns="http://www.kde.org/standards/kcfg/1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.kde.org/standards/kcfg/1.0
http://www.kde.org/standards/kcfg/1.0/kcfg.xsd" >
<!-- the content -->
</kcfg>
]]>
</xsd:documentation>
</xsd:annotation>
<xsd:element name="kcfg">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="include" minOccurs="0" maxOccurs="unbounded" type="xsd:string"/>
<xsd:element name="kcfgfile" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="parameter" type="kcfg:parameter" minOccurs="0" maxOccurs="unbounded" />
<!-- FIXME: Are really unbounded occurances of parameter allowed? -->
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="optional"/>
<xsd:attribute name="arg" type="xsd:boolean" use="optional"/>
</xsd:complexType>
</xsd:element>
<xsd:element name="group" maxOccurs="unbounded" >
<xsd:complexType>
<xsd:sequence>
<xsd:element name="entry" maxOccurs="unbounded">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="parameter" minOccurs="0" type="kcfg:parameter"/>
<xsd:element name="label" minOccurs="0" type="xsd:string"/>
<xsd:element name="whatsthis" minOccurs="0" type="xsd:string"/>
<xsd:element name="choices" minOccurs="0">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="choice" maxOccurs="unbounded">
<xsd:complexType>
<xsd:all>
<xsd:element minOccurs="0" name="label" type="xsd:string"/>
<xsd:element minOccurs="0" name="whatsthis" type="xsd:string"/>
</xsd:all>
<xsd:attribute name="name" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="code" minOccurs="0" type="kcfg:code"/>
<xsd:element name="default" maxOccurs="unbounded" minOccurs="0" >
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute use="optional" name="code" type="xsd:boolean"/>
<xsd:attribute use="optional" name="param" type="xsd:string"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="min" minOccurs="0" >
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="code" type="xsd:boolean"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="max" minOccurs="0">
<xsd:complexType>
<xsd:simpleContent>
<xsd:extension base="xsd:string">
<xsd:attribute name="code" type="xsd:boolean"/>
</xsd:extension>
</xsd:simpleContent>
</xsd:complexType>
</xsd:element>
</xsd:choice>
<xsd:attribute name="name" use="optional" type="xsd:string"/>
<xsd:attribute name="key" use="optional" type="xsd:string"/>
<xsd:attribute name="hidden" use="optional" type="xsd:boolean"/>
<xsd:attribute name="type" type="kcfg:datatype"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:simpleType name="datatype">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="String"/>
<xsd:enumeration value="StringList"/>
<xsd:enumeration value="Font"/>
<xsd:enumeration value="Rect"/>
<xsd:enumeration value="Size"/>
<xsd:enumeration value="Color"/>
<xsd:enumeration value="Point"/>
<xsd:enumeration value="Int"/>
<xsd:enumeration value="UInt"/>
<xsd:enumeration value="Bool"/>
<xsd:enumeration value="Double"/>
<xsd:enumeration value="DateTime"/>
<xsd:enumeration value="Int64"/>
<xsd:enumeration value="UInt64"/>
<xsd:enumeration value="IntList"/>
<xsd:enumeration value="Enum"/>
<xsd:enumeration value="Path"/>
<xsd:enumeration value="Password"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:complexType name="parameter">
<xsd:sequence>
<xsd:element minOccurs="0" name="values">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" maxOccurs="unbounded" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string"/>
<xsd:attribute name="type" use="optional" type="kcfg:datatype" />
<xsd:attribute name="max" use="optional" type="xsd:positiveInteger"/>
</xsd:complexType>
<xsd:complexType name="code">
<xsd:simpleContent>
<xsd:extension base="xsd:string"/>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>
|