summaryrefslogtreecommitdiff
path: root/slides/schema/xsd/slides.xsd
blob: 01f819e8baa7507034d29dc4ad68654868cc4604 (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
351
352
353
354
355
356
357
358
359
360
361
362
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" targetNamespace="http://docbook.org/ns/docbook-slides" xmlns:dbs="http://docbook.org/ns/docbook-slides" xmlns:db="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <xs:include schemaLocation="docbook.xsd"/>
  <xs:import namespace="http://docbook.org/ns/docbook" schemaLocation="db.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"/>
  <!-- See http://docbook.org/ns/docbook-slides -->
  <!--
    This file is part of DocBook Slides V5.0
    
    Copyright 2012 Gabor Kovesdan
    
    Release: $Id$
    
    Permission to use, copy, modify and distribute the DocBook Slides
    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 Slides schema in any way, label your schema
    as a variant of DocBook Slides. 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/.
    
    ======================================================================
  -->
  <!-- Avoid ID clashes -->
  <xs:attributeGroup name="db._any.attribute">
    <xs:anyAttribute processContents="skip"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="db.common.attributes">
    <xs:attribute ref="xml:id"/>
    <xs:attributeGroup ref="db:db.common.base.attributes"/>
    <xs:attribute name="annotations"/>
    <xs:attributeGroup ref="dbs:dbs.style.attributes"/>
  </xs:attributeGroup>
  <!-- Any element and attribute from the SVG namespace -->
  <xs:group name="db._any.svg">
    <xs:sequence>
      <xs:any namespace="http://www.w3.org/2000/svg" processContents="skip"/>
    </xs:sequence>
  </xs:group>
  <!-- Any element and attribute from the MathML namespace -->
  <xs:group name="db._any.mml">
    <xs:sequence>
      <xs:any namespace="http://www.w3.org/1998/Math/MathML" processContents="skip"/>
    </xs:sequence>
  </xs:group>
  <!-- Any attribute from any namespace -->
  <xs:attributeGroup name="dbs._any.attribute">
    <xs:anyAttribute processContents="skip"/>
  </xs:attributeGroup>
  <xs:group name="dbs.all.content">
    <xs:sequence>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:group ref="db:db.all.blocks"/>
        <xs:element ref="dbs:speakernotes"/>
        <xs:element ref="dbs:handoutnotes"/>
        <xs:group ref="dbs:db._any.svg"/>
        <xs:group ref="dbs:db._any.mml"/>
        <xs:element ref="dbs:block"/>
      </xs:choice>
    </xs:sequence>
  </xs:group>
  <xs:element name="block">
    <xs:annotation>
      <xs:documentation>Indicates a formatting block that can have its own styling applied</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:group minOccurs="0" maxOccurs="unbounded" ref="dbs:dbs.all.content"/>
      <xs:attributeGroup ref="dbs:dbs.block.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.block.role.attribute">
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the block element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.block.status.attribute">
    <xs:attributeGroup ref="db:db.status.attribute"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.block.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the block element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attribute name="label"/>
    <xs:attribute name="status"/>
  </xs:attributeGroup>
  <xs:element name="slides">
    <xs:annotation>
      <xs:documentation>Root element of a slides document</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:group ref="db:db._info.title.req"/>
        <xs:element minOccurs="0" ref="dbs:speakernotes"/>
        <xs:element minOccurs="0" ref="dbs:handoutnotes"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="dbs:foil"/>
          <xs:element ref="dbs:foilgroup"/>
        </xs:choice>
      </xs:sequence>
      <xs:attributeGroup ref="dbs:dbs.slides.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.slides.role.attribute">
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the slides element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.slides.status.attribute">
    <xs:attributeGroup ref="db:db.status.attribute"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.slides.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the slides element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attribute name="label"/>
    <xs:attribute name="status"/>
  </xs:attributeGroup>
  <xs:element name="foilgroup">
    <xs:complexType>
      <xs:sequence>
        <xs:group ref="db:db._info.title.req"/>
        <xs:group minOccurs="0" maxOccurs="unbounded" ref="dbs:dbs.all.content"/>
        <xs:element maxOccurs="unbounded" ref="dbs:foil"/>
      </xs:sequence>
      <xs:attributeGroup ref="dbs:dbs.foilgroup.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.foilgroup.role.attribute">
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the foilgroup element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.foilgroup.status.attribute">
    <xs:attributeGroup ref="db:db.status.attribute"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.foilgroup.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the foilgroup element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attribute name="label"/>
    <xs:attribute name="status"/>
  </xs:attributeGroup>
  <xs:element name="foil">
    <xs:annotation>
      <xs:documentation>Indicates a foil that may have some info and content</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:sequence>
        <xs:group ref="db:db._info.title.req"/>
        <xs:group minOccurs="0" maxOccurs="unbounded" ref="dbs:dbs.all.content"/>
        <xs:group minOccurs="0" maxOccurs="unbounded" ref="db:db.navigation.components"/>
      </xs:sequence>
      <xs:attributeGroup ref="dbs:dbs.foil.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.foil.role.attribute">
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the foil element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.foil.status.attribute">
    <xs:attributeGroup ref="db:db.status.attribute"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.foil.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the foil element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
    <xs:attribute name="label"/>
    <xs:attribute name="status"/>
  </xs:attributeGroup>
  <xs:element name="speakernotes">
    <xs:annotation>
      <xs:documentation>Indicates notes for the speaker</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
      <xs:attributeGroup ref="dbs:dbs.speakernotes.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.speakernotes.role.attribute">
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the speakernotes element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.speakernotes.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the speakernotes element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  </xs:attributeGroup>
  <xs:element name="handoutnotes">
    <xs:annotation>
      <xs:documentation>Indicates notes that are meant for printed copies</xs:documentation>
    </xs:annotation>
    <xs:complexType>
      <xs:group maxOccurs="unbounded" ref="db:db.all.blocks"/>
      <xs:attributeGroup ref="dbs:dbs.handoutnotes.attlist"/>
    </xs:complexType>
  </xs:element>
  <xs:attributeGroup name="dbs.handoutnotes.role.attribute">
    <xs:annotation>
      <xs:documentation>Role attribute for the handoutnotes element</xs:documentation>
    </xs:annotation>
    <xs:attribute name="role" use="required">
      <xs:annotation>
        <xs:documentation>Role attribute for the handoutnotes element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.handoutnotes.attlist">
    <xs:attribute name="role">
      <xs:annotation>
        <xs:documentation>Role attribute for the handoutnotes element</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attributeGroup ref="dbs:db.common.attributes"/>
    <xs:attributeGroup ref="db:db.common.linking.attributes"/>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.style.attributes">
    <xs:attribute name="incremental" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating an incremental part</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0">
            <xs:annotation>
              <xs:documentation>disabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="1">
            <xs:annotation>
              <xs:documentation>enabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="collapsible" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating a collapsible part</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0">
            <xs:annotation>
              <xs:documentation>disabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="1">
            <xs:annotation>
              <xs:documentation>enabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="expanded">
            <xs:annotation>
              <xs:documentation>enabled and expanded by default</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
    <xs:attribute name="style" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating a formatting style class</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.incremental.attribute">
    <xs:attribute name="incremental" use="required" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating an incremental part</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0">
            <xs:annotation>
              <xs:documentation>disabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="1">
            <xs:annotation>
              <xs:documentation>enabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.collapsible.attribute">
    <xs:attribute name="collapsible" use="required" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating a collapsible part</xs:documentation>
      </xs:annotation>
      <xs:simpleType>
        <xs:restriction base="xs:token">
          <xs:enumeration value="0">
            <xs:annotation>
              <xs:documentation>disabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="1">
            <xs:annotation>
              <xs:documentation>enabled</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="expanded">
            <xs:annotation>
              <xs:documentation>enabled and expanded by default</xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:attributeGroup>
  <xs:attributeGroup name="dbs.style.attribute">
    <xs:attribute name="style" use="required" form="qualified">
      <xs:annotation>
        <xs:documentation>Attribute indicating a formatting style class</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:attributeGroup>
</xs:schema>