summaryrefslogtreecommitdiff
path: root/slides/schema/xsd/keyboard.xsd
blob: 26ca4d79a9b930f744a5efbd703c9c560499c958 (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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<?xml version="1.0" encoding="UTF-8"?>
<!--
  This file is part of DocBook V5.0
  
  Copyright 1992-2008 HaL Computer Systems, Inc.,
  O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
  Corporation, Norman Walsh, Sun Microsystems, Inc., and the
  Organization for the Advancement of Structured Information
  Standards (OASIS).
  
  Release: $Id: pool.rnc 7466 2007-09-27 14:03:55Z nwalsh $
  
  Permission to use, copy, modify and distribute the DocBook schema
  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 schema
  for any purpose. It is provided "as is" without expressed or implied
  warranty.
  
  If you modify the DocBook schema in any way, label your schema as a
  variant of DocBook. See the reference documentation
  (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
  for more information.
  
  Please direct all questions, bug reports, or suggestions for changes
  to the docbook@lists.oasis-open.org mailing list. For more
  information, see http://www.oasis-open.org/docbook/.
  
  ======================================================================
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <xs:import namespace="http://docbook.org/ns/docbook-slides" schemaLocation="slides.xsd"/>
  <xs:import namespace="http://www.w3.org/1999/xlink" schemaLocation="xlink.xsd"/>
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
  <xs:group name="db.keyboard.inlines">
    <xs:choice>
      <xs:element ref="db:keycombo"/>
      <xs:element ref="db:keycap"/>
      <xs:element ref="db:keycode"/>
      <xs:element ref="db:keysym"/>
      <xs:element ref="db:shortcut"/>
      <xs:element ref="db:accel"/>
    </xs:choice>
  </xs:group>
  <!-- ====================================================================== -->
  <xs:simpleType name="db.keycap.function.enumeration">
    <xs:restriction base="xs:token">
      <xs:enumeration value="alt">
        <xs:annotation>
          <xs:documentation>The "Alt" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="backspace">
        <xs:annotation>
          <xs:documentation>The "Backspace" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="command">
        <xs:annotation>
          <xs:documentation>The "Command" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="control">
        <xs:annotation>
          <xs:documentation>The "Control" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="delete">
        <xs:annotation>
          <xs:documentation>The "Delete" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="down">
        <xs:annotation>
          <xs:documentation>The down arrow</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="end">
        <xs:annotation>
          <xs:documentation>The "End" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="enter">
        <xs:annotation>
          <xs:documentation>The "Enter" or "Return" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="escape">
        <xs:annotation>
          <xs:documentation>The "Escape" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="home">
        <xs:annotation>
          <xs:documentation>The "Home" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="insert">
        <xs:annotation>
          <xs:documentation>The "Insert" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="left">
        <xs:annotation>
          <xs:documentation>The left arrow</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="meta">
        <xs:annotation>
          <xs:documentation>The "Meta" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="option">
        <xs:annotation>
          <xs:documentation>The "Option" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pagedown">
        <xs:annotation>
          <xs:documentation>The page down key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pageup">
        <xs:annotation>
          <xs:documentation>The page up key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="right">
        <xs:annotation>
          <xs:documentation>The right arrow</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="shift">
        <xs:annotation>
          <xs:documentation>The "Shift" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="space">
        <xs:annotation>
          <xs:documentation>The spacebar</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="tab">
        <xs:annotation>
          <xs:documentation>The "Tab" key</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="up">
        <xs:annotation>
          <xs:documentation>The up arrow</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:attributeGroup name="db.keycap.function-enum.attribute">
    <xs:attribute name="function" type="db:db.keycap.function.enumeration"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycap.function-other.attributes">
    <xs:attribute name="function">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="other">
            <xs:annotation>
              <xs:documentation>Indicates a non-standard function key</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="otherfunction" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycap.function.attrib">
    <xs:attribute name="function">
      <xs:simpleType>
        <xs:union memberTypes="db:db.keycap.function.enumeration">
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value="other">
                <xs:annotation>
                  <xs:documentation>Indicates a non-standard function key</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:union>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="otherfunction"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycap.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycap.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attributeGroup ref="db:db.keycap.function.attrib"/>
  </xs:attributeGroup>
  <xs:element name="keycap">
    <xs:complexType mixed="true">
      <xs:group ref="db:db._text"/>
      <xs:attributeGroup ref="db:db.keycap.attlist"/>
    </xs:complexType>
  </xs:element>
  <!-- ====================================================================== -->
  <xs:attributeGroup name="db.keycode.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycode.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  </xs:attributeGroup>
  <xs:element name="keycode">
    <xs:complexType mixed="true">
      <xs:group ref="db:db._text"/>
      <xs:attributeGroup ref="db:db.keycode.attlist"/>
    </xs:complexType>
  </xs:element>
  <!-- ====================================================================== -->
  <xs:simpleType name="db.keycombo.action.enumeration">
    <xs:restriction base="xs:token">
      <xs:enumeration value="click">
        <xs:annotation>
          <xs:documentation>A (single) mouse click.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="double-click">
        <xs:annotation>
          <xs:documentation>A double mouse click.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="press">
        <xs:annotation>
          <xs:documentation>A mouse or key press.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="seq">
        <xs:annotation>
          <xs:documentation>Sequential clicks or presses.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="simul">
        <xs:annotation>
          <xs:documentation>Simultaneous clicks or presses.</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:attributeGroup name="db.keycombo.action-enum.attribute">
    <xs:attribute name="action" type="db:db.keycombo.action.enumeration"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycombo.action-other.attributes">
    <xs:attribute name="action">
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="other">
            <xs:annotation>
              <xs:documentation>Indicates a non-standard action</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="otheraction" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycombo.action.attrib">
    <xs:attribute name="action">
      <xs:simpleType>
        <xs:union memberTypes="db:db.keycombo.action.enumeration">
          <xs:simpleType>
            <xs:restriction base="xs:token">
              <xs:enumeration value="other">
                <xs:annotation>
                  <xs:documentation>Indicates a non-standard action</xs:documentation>
                </xs:annotation>
              </xs:enumeration>
            </xs:restriction>
          </xs:simpleType>
        </xs:union>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="otheraction"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycombo.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keycombo.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attributeGroup ref="db:db.keycombo.action.attrib"/>
  </xs:attributeGroup>
  <xs:element name="keycombo">
    <xs:complexType>
      <xs:group maxOccurs="unbounded" ref="db:db.keycombination.contentmodel"/>
      <xs:attributeGroup ref="db:db.keycombo.attlist"/>
    </xs:complexType>
  </xs:element>
  <!-- ====================================================================== -->
  <xs:attributeGroup name="db.keysym.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.keysym.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  </xs:attributeGroup>
  <xs:element name="keysym">
    <xs:complexType mixed="true">
      <xs:group ref="db:db._text"/>
      <xs:attributeGroup ref="db:db.keysym.attlist"/>
    </xs:complexType>
  </xs:element>
  <!-- ====================================================================== -->
  <xs:attributeGroup name="db.accel.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.accel.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  </xs:attributeGroup>
  <xs:element name="accel">
    <xs:complexType mixed="true">
      <xs:group ref="db:db._text"/>
      <xs:attributeGroup ref="db:db.accel.attlist"/>
    </xs:complexType>
  </xs:element>
  <!-- ====================================================================== -->
  <xs:attributeGroup name="db.shortcut.action.attrib">
    <xs:attributeGroup ref="db:db.keycombo.action.attrib"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.shortcut.role.attribute">
    <xs:attribute name="role" use="required"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.shortcut.attlist">
    <xs:attribute name="role"/>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attributeGroup ref="db:db.shortcut.action.attrib"/>
  </xs:attributeGroup>
  <xs:element name="shortcut">
    <xs:complexType>
      <xs:group maxOccurs="unbounded" ref="db:db.keycombination.contentmodel"/>
      <xs:attributeGroup ref="db:db.shortcut.attlist"/>
    </xs:complexType>
  </xs:element>
</xs:schema>