Debian Codegraph @

schema/subjectScheme/xsd/subjectSchemeMod.xsd

raw
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ============================================================= -->
3 <!-- HEADER -->
4 <!-- ============================================================= -->
5 <!-- MODULE: DITA Subject Scheme Map -->
6 <!-- VERSION: 1.2 -->
7 <!-- DATE: February 2009 -->
8 <!---->
9 <!-- ============================================================= -->
10 <!-- ============================================================= -->
11 <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
12 <!---->
13 <!-- PURPOSE: Declaring the elements and specialization -->
14 <!-- attributes for DITA Subject Scheme Maps -->
15 <!---->
16 <!-- ORIGINAL CREATION DATE: -->
17 <!-- February 2009 -->
18 <!---->
19 <!-- (C) Copyright OASIS Open 2009. -->
20 <!-- (C) Copyright IBM Corporation 2005, 2007. -->
21 <!-- All Rights Reserved. -->
22 <!---->
23 <!-- UPDATES: -->
24 <!-- 2009.02.13 RDA: Created file based upon prototype from IBM -->
25 <!-- ============================================================= -->
26
27 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
28 xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
29
30 <xs:import namespace="http://dita.oasis-open.org/architecture/2005/" schemaLocation="urn:oasis:names:tc:dita:xsd:ditaarch.xsd:1.2"/>
31
32 <xs:annotation>
33 <xs:appinfo>
34 <dita:domainsModule xmlns:dita="http://dita.oasis-open.org/architecture/2005/">(map subjectScheme)</dita:domainsModule>
35 </xs:appinfo>
36 <xs:documentation>
37
38 </xs:documentation>
39 </xs:annotation>
40
41 <!-- ============================================================= -->
42 <!-- ELEMENT DECLARATIONS -->
43 <!-- ============================================================= -->
44
45 <xs:complexType name="subjectScheme.class">
46 <xs:sequence>
47 <xs:group ref="subjectScheme.content"/>
48 </xs:sequence>
49 <xs:attributeGroup ref="subjectScheme.attributes"/>
50 </xs:complexType>
51
52 <!-- This differs from topicref-atts-no-toc only by providing a
53 default for @processing-role -->
54 <xs:attributeGroup name="topicref-atts-for-subjectScheme">
55 <xs:annotation>
56 <xs:documentation>
57 The %topicref-atts-for-subjectScheme; parameter entity represents the set
58 of attributes used in the <xref href="reltable.xml">reltable</xref> map
59 element. The set is similar to those documented in <xref href="topicref-atts.xml">topicref-atts</xref> but
60 for &lt;<keyword>reltable</keyword>&gt; the <i><keyword>toc</keyword></i> attribute
61 defaults to <q>no</q>. For the other elements that use the %topicref-atts;
62 group declaration, the <i><keyword>toc</keyword></i> attribute doesn't have
63 a default; they can inherit their <i><keyword>toc</keyword></i> value from
64 the nearest container, otherwise it functions upon output as if set to <q>yes</q>.
65 </xs:documentation>
66 </xs:annotation>
67 <xs:attribute name="collection-type" type="collection-type.class"/>
68 <xs:attribute name="type" type="xs:string"/>
69 <xs:attribute name="processing-role" type="processing-role-att.class" default="resource-only"/>
70 <xs:attribute name="scope" type="scope-att.class"/>
71 <xs:attribute name="locktitle" type="yesno-att.class"/>
72 <xs:attribute name="format" type="xs:string"/>
73 <xs:attribute name="linking" type="linkingtypes.class"/>
74 <xs:attribute name="toc" type="yesno-att.class" default="no"/>
75 <xs:attribute name="print" type="print-att.class"/>
76 <xs:attribute name="search" type="yesno-att.class"/>
77 <xs:attribute name="chunk" type="xs:string"/>
78 </xs:attributeGroup>
79
80 <!-- LONG NAME: Subject Scheme Map -->
81 <xs:group name="subjectScheme.content">
82 <xs:sequence>
83 <xs:sequence>
84 <xs:group minOccurs="0" ref="title"/>
85 <xs:group minOccurs="0" ref="topicmeta"/>
86 <xs:choice minOccurs="0" maxOccurs="unbounded">
87 <xs:group ref="anchor"/>
88 <xs:group ref="data.elements.incl"/>
89 <xs:group ref="enumerationdef"/>
90 <xs:group ref="hasInstance"/>
91 <xs:group ref="hasKind"/>
92 <xs:group ref="hasNarrower"/>
93 <xs:group ref="hasPart"/>
94 <xs:group ref="hasRelated"/>
95 <xs:group ref="navref"/>
96 <xs:group ref="relatedSubjects"/>
97 <xs:group ref="reltable"/>
98 <xs:group ref="schemeref"/>
99 <xs:group ref="subjectdef"/>
100 <xs:group ref="subjectHead"/>
101 <xs:group ref="subjectRelTable"/>
102 <xs:group ref="topicref"/>
103 </xs:choice>
104 </xs:sequence>
105 </xs:sequence>
106 </xs:group>
107
108 <xs:attributeGroup name="subjectScheme.attributes">
109 <xs:attribute ref="ditaarch:DITAArchVersion"/>
110 <xs:attributeGroup ref="domains-att"/>
111 <xs:attribute name="id" type="xs:ID"/>
112 <xs:attributeGroup ref="conref-atts"/>
113 <xs:attribute name="anchorref" type="xs:string"/>
114 <xs:attribute name="outputclass" type="xs:string"/>
115 <xs:attributeGroup ref="localization-atts"/>
116 <xs:attributeGroup ref="topicref-atts-for-subjectScheme"/>
117 <xs:attributeGroup ref="select-atts"/>
118 <xs:attributeGroup ref="global-atts"/>
119 </xs:attributeGroup>
120
121 <xs:element name="subjectScheme">
122 <xs:complexType>
123 <xs:complexContent>
124 <xs:extension base="subjectScheme.class">
125 <xs:attribute name="class" default="- map/map subjectScheme/subjectScheme "/>
126 </xs:extension>
127 </xs:complexContent>
128 </xs:complexType>
129 </xs:element>
130
131 <xs:complexType name="schemeref.class">
132 <xs:sequence>
133 <xs:group ref="schemeref.content"/>
134 </xs:sequence>
135 <xs:attributeGroup ref="schemeref.attributes"/>
136 </xs:complexType>
137
138 <!-- LONG NAME: Scheme reference -->
139 <xs:group name="schemeref.content">
140 <xs:sequence>
141 <xs:sequence>
142 <xs:group minOccurs="0" ref="topicmeta"/>
143 <xs:group minOccurs="0" maxOccurs="unbounded" ref="data.elements.incl"/>
144 </xs:sequence>
145 </xs:sequence>
146 </xs:group>
147
148 <xs:attributeGroup name="schemeref.attributes">
149 <xs:attribute name="navtitle" type="xs:string"/>
150 <xs:attribute name="href" type="xs:string"/>
151 <xs:attribute name="keyref" type="xs:string"/>
152 <xs:attribute name="keys" type="xs:string"/>
153 <xs:attribute name="query" type="xs:string"/>
154 <xs:attribute name="processing-role" type="processing-role-att.class" />
155 <xs:attribute name="type" default="scheme" type="xs:string"/>
156 <xs:attribute name="format" default="ditamap" type="xs:string"/>
157 <xs:attribute name="scope" type="scope-att.class"/>
158 <xs:attributeGroup ref="univ-atts"/>
159 <xs:attributeGroup ref="global-atts"/>
160 </xs:attributeGroup>
161
162 <xs:element name="schemeref">
163 <xs:complexType>
164 <xs:complexContent>
165 <xs:extension base="schemeref.class">
166 <xs:attribute name="class" default="- map/topicref subjectScheme/schemeref "/>
167 </xs:extension>
168 </xs:complexContent>
169 </xs:complexType>
170 </xs:element>
171
172 <xs:complexType name="hasNarrower.class">
173 <xs:sequence>
174 <xs:group ref="hasNarrower.content"/>
175 </xs:sequence>
176 <xs:attributeGroup ref="hasNarrower.attributes"/>
177 </xs:complexType>
178
179 <!-- LONG NAME: Has Narrower Relationship -->
180 <xs:group name="hasNarrower.content">
181 <xs:sequence>
182 <xs:sequence>
183 <xs:group minOccurs="0" ref="topicmeta"/>
184 <xs:choice minOccurs="0" maxOccurs="unbounded">
185 <xs:group ref="data.elements.incl"/>
186 <xs:group ref="subjectdef"/>
187 <xs:group ref="subjectHead"/>
188 <xs:group ref="topicref"/>
189 </xs:choice>
190 </xs:sequence>
191 </xs:sequence>
192 </xs:group>
193 <xs:attributeGroup name="hasNarrower.attributes">
194 <xs:attribute name="navtitle" type="xs:string"/>
195 <xs:attribute name="href" type="xs:string"/>
196 <xs:attribute name="keyref" type="xs:string"/>
197 <xs:attribute name="keys" type="xs:string"/>
198 <xs:attribute name="scope" type="scope-att.class"/>
199 <xs:attribute name="processing-role" type="processing-role-att.class" />
200 <xs:attribute name="format" type="xs:string"/>
201 <xs:attribute name="type" type="xs:string"/>
202 <xs:attributeGroup ref="univ-atts"/>
203 <xs:attributeGroup ref="global-atts"/>
204 </xs:attributeGroup>
205 <xs:element name="hasNarrower">
206 <xs:complexType>
207 <xs:complexContent>
208 <xs:extension base="hasNarrower.class">
209 <xs:attribute name="class" default="- map/topicref subjectScheme/hasNarrower "/>
210 </xs:extension>
211 </xs:complexContent>
212 </xs:complexType>
213 </xs:element>
214
215 <xs:complexType name="hasKind.class">
216 <xs:sequence>
217 <xs:group ref="hasKind.content"/>
218 </xs:sequence>
219 <xs:attributeGroup ref="hasKind.attributes"/>
220 </xs:complexType>
221
222 <!-- LONG NAME: Has Kind Relationship -->
223 <xs:group name="hasKind.content">
224 <xs:sequence>
225 <xs:sequence>
226 <xs:group minOccurs="0" ref="topicmeta"/>
227 <xs:choice minOccurs="0" maxOccurs="unbounded">
228 <xs:group ref="data.elements.incl"/>
229 <xs:group ref="subjectdef"/>
230 <xs:group ref="subjectHead"/>
231 <xs:group ref="topicref"/>
232 </xs:choice>
233 </xs:sequence>
234 </xs:sequence>
235 </xs:group>
236 <xs:attributeGroup name="hasKind.attributes">
237 <xs:attribute name="navtitle" type="xs:string"/>
238 <xs:attribute name="href" type="xs:string"/>
239 <xs:attribute name="keyref" type="xs:string"/>
240 <xs:attribute name="keys" type="xs:string"/>
241 <xs:attribute name="scope" type="scope-att.class"/>
242 <xs:attribute name="processing-role" type="processing-role-att.class" />
243 <xs:attribute name="format" type="xs:string"/>
244 <xs:attribute name="type" type="xs:string"/>
245 <xs:attributeGroup ref="univ-atts"/>
246 <xs:attributeGroup ref="global-atts"/>
247 </xs:attributeGroup>
248 <xs:element name="hasKind">
249 <xs:complexType>
250 <xs:complexContent>
251 <xs:extension base="hasKind.class">
252 <xs:attribute name="class" default="- map/topicref subjectScheme/hasKind "/>
253 </xs:extension>
254 </xs:complexContent>
255 </xs:complexType>
256 </xs:element>
257
258 <!-- LONG NAME: Has Part Relationship -->
259 <xs:complexType name="hasPart.class">
260 <xs:sequence>
261 <xs:group ref="hasPart.content"/>
262 </xs:sequence>
263 <xs:attributeGroup ref="hasPart.attributes"/>
264 </xs:complexType>
265
266 <xs:group name="hasPart.content">
267 <xs:sequence>
268 <xs:sequence>
269 <xs:group minOccurs="0" ref="topicmeta"/>
270 <xs:choice minOccurs="0" maxOccurs="unbounded">
271 <xs:group ref="data.elements.incl"/>
272 <xs:group ref="subjectdef"/>
273 <xs:group ref="subjectHead"/>
274 <xs:group ref="topicref"/>
275 </xs:choice>
276 </xs:sequence>
277 </xs:sequence>
278 </xs:group>
279 <xs:attributeGroup name="hasPart.attributes">
280 <xs:attribute name="navtitle" type="xs:string"/>
281 <xs:attribute name="href" type="xs:string"/>
282 <xs:attribute name="keyref" type="xs:string"/>
283 <xs:attribute name="keys" type="xs:string"/>
284 <xs:attribute name="scope" type="scope-att.class"/>
285 <xs:attribute name="processing-role" type="processing-role-att.class" />
286 <xs:attribute name="format" type="xs:string"/>
287 <xs:attribute name="type" type="xs:string"/>
288 <xs:attributeGroup ref="univ-atts"/>
289 <xs:attributeGroup ref="global-atts"/>
290 </xs:attributeGroup>
291 <xs:element name="hasPart">
292 <xs:complexType>
293 <xs:complexContent>
294 <xs:extension base="hasPart.class">
295 <xs:attribute name="class" default="- map/topicref subjectScheme/hasPart "/>
296 </xs:extension>
297 </xs:complexContent>
298 </xs:complexType>
299 </xs:element>
300
301 <!-- LONG NAME: Has Instance Relationship -->
302
303 <xs:complexType name="hasInstance.class">
304 <xs:sequence>
305 <xs:group ref="hasInstance.content"/>
306 </xs:sequence>
307 <xs:attributeGroup ref="hasInstance.attributes"/>
308 </xs:complexType>
309
310 <xs:group name="hasInstance.content">
311 <xs:sequence>
312 <xs:sequence>
313 <xs:group minOccurs="0" ref="topicmeta"/>
314 <xs:choice minOccurs="0" maxOccurs="unbounded">
315 <xs:group ref="data.elements.incl"/>
316 <xs:group ref="subjectdef"/>
317 <xs:group ref="subjectHead"/>
318 <xs:group ref="topicref"/>
319 </xs:choice>
320 </xs:sequence>
321 </xs:sequence>
322 </xs:group>
323 <xs:attributeGroup name="hasInstance.attributes">
324 <xs:attribute name="navtitle" type="xs:string"/>
325 <xs:attribute name="href" type="xs:string"/>
326 <xs:attribute name="keyref" type="xs:string"/>
327 <xs:attribute name="keys" type="xs:string"/>
328 <xs:attribute name="scope" type="scope-att.class"/>
329 <xs:attribute name="processing-role" type="processing-role-att.class" />
330 <xs:attribute name="format" type="xs:string"/>
331 <xs:attribute name="type" type="xs:string"/>
332 <xs:attributeGroup ref="univ-atts"/>
333 <xs:attributeGroup ref="global-atts"/>
334 </xs:attributeGroup>
335 <xs:element name="hasInstance">
336 <xs:complexType>
337 <xs:complexContent>
338 <xs:extension base="hasInstance.class">
339 <xs:attribute name="class" default="- map/topicref subjectScheme/hasInstance "/>
340 </xs:extension>
341 </xs:complexContent>
342 </xs:complexType>
343 </xs:element>
344
345 <!-- LONG NAME: Has Related Relationship -->
346 <xs:complexType name="hasRelated.class">
347 <xs:sequence>
348 <xs:group ref="hasRelated.content"/>
349 </xs:sequence>
350 <xs:attributeGroup ref="hasRelated.attributes"/>
351 </xs:complexType>
352
353 <xs:group name="hasRelated.content">
354 <xs:sequence>
355 <xs:sequence>
356 <xs:group minOccurs="0" ref="topicmeta"/>
357 <xs:choice minOccurs="0" maxOccurs="unbounded">
358 <xs:group ref="data.elements.incl"/>
359 <xs:group ref="subjectdef"/>
360 <xs:group ref="subjectHead"/>
361 <xs:group ref="topicref"/>
362 </xs:choice>
363 </xs:sequence>
364 </xs:sequence>
365 </xs:group>
366 <xs:attributeGroup name="hasRelated.attributes">
367 <xs:attribute name="navtitle" type="xs:string"/>
368 <xs:attribute name="href" type="xs:string"/>
369 <xs:attribute name="keyref" type="xs:string"/>
370 <xs:attribute name="keys" type="xs:string"/>
371 <xs:attribute name="collection-type" default="choice">
372 <xs:simpleType>
373 <xs:restriction base="xs:token">
374 <xs:enumeration value="choice"/>
375 <xs:enumeration value="sequence"/>
376 <xs:enumeration value="unordered"/>
377 <xs:enumeration value="-dita-use-conref-target"/>
378 </xs:restriction>
379 </xs:simpleType>
380 </xs:attribute>
381 <xs:attribute name="scope" type="scope-att.class"/>
382 <xs:attribute name="processing-role" type="processing-role-att.class" />
383 <xs:attribute name="format" type="xs:string"/>
384 <xs:attribute name="type" type="xs:string"/>
385 <xs:attributeGroup ref="univ-atts"/>
386 <xs:attributeGroup ref="global-atts"/>
387 </xs:attributeGroup>
388
389 <xs:element name="hasRelated">
390 <xs:complexType>
391 <xs:complexContent>
392 <xs:extension base="hasRelated.class">
393 <xs:attribute name="class" default="- map/topicref subjectScheme/hasRelated "/>
394 </xs:extension>
395 </xs:complexContent>
396 </xs:complexType>
397 </xs:element>
398
399 <xs:complexType name="subjectdef.class">
400 <xs:sequence>
401 <xs:group ref="subjectdef.content"/>
402 </xs:sequence>
403 <xs:attributeGroup ref="subjectdef.attributes"/>
404 </xs:complexType>
405
406 <!-- LONG NAME: Subject definition -->
407 <xs:group name="subjectdef.content">
408 <xs:sequence>
409 <xs:sequence>
410 <xs:group minOccurs="0" ref="topicmeta"/>
411 <xs:choice minOccurs="0" maxOccurs="unbounded">
412 <xs:group ref="data.elements.incl"/>
413 <xs:group ref="hasInstance"/>
414 <xs:group ref="hasKind"/>
415 <xs:group ref="hasNarrower"/>
416 <xs:group ref="hasPart"/>
417 <xs:group ref="hasRelated"/>
418 <xs:group ref="subjectdef"/>
419 <xs:group ref="subjectHead"/>
420 <xs:group ref="topicref"/>
421 </xs:choice>
422 </xs:sequence>
423 </xs:sequence>
424 </xs:group>
425 <xs:attributeGroup name="subjectdef.attributes">
426 <xs:attribute name="navtitle" type="xs:string"/>
427 <xs:attribute name="href" type="xs:string"/>
428 <xs:attribute name="keyref" type="xs:string"/>
429 <xs:attribute name="keys" type="xs:string"/>
430 <xs:attribute name="query" type="xs:string"/>
431 <xs:attribute name="copy-to" type="xs:string"/>
432 <xs:attribute name="outputclass" type="xs:string"/>
433 <xs:attribute name="collection-type" type="collection-type.class"/>
434 <xs:attribute name="type" type="xs:string"/>
435 <xs:attribute name="scope" type="scope-att.class"/>
436 <xs:attribute name="processing-role" type="processing-role-att.class" />
437 <xs:attribute name="locktitle" type="yesno-att.class"/>
438 <xs:attribute name="format" type="xs:string"/>
439 <xs:attribute name="linking" type="linkingtypes.class"/>
440 <xs:attribute name="toc" type="yesno-att.class"/>
441 <xs:attributeGroup ref="univ-atts"/>
442 <xs:attributeGroup ref="global-atts"/>
443 </xs:attributeGroup>
444
445 <xs:element name="subjectdef">
446 <xs:complexType>
447 <xs:complexContent>
448 <xs:extension base="subjectdef.class">
449 <xs:attribute name="class" default="- map/topicref subjectScheme/subjectdef "/>
450 </xs:extension>
451 </xs:complexContent>
452 </xs:complexType>
453 </xs:element>
454
455 <!-- LONG NAME: Subject Heading -->
456 <!-- SKOS equivalent: concept collection -->
457 <xs:complexType name="subjectHead.class">
458 <xs:sequence>
459 <xs:group ref="subjectHead.content"/>
460 </xs:sequence>
461 <xs:attributeGroup ref="subjectHead.attributes"/>
462 </xs:complexType>
463
464 <xs:group name="subjectHead.content">
465 <xs:sequence>
466 <xs:sequence>
467 <xs:group minOccurs="0" ref="subjectHeadMeta"/>
468 <xs:choice minOccurs="0" maxOccurs="unbounded">
469 <xs:group ref="data.elements.incl"/>
470 <xs:group ref="subjectdef"/>
471 <xs:group ref="subjectHead"/>
472 <xs:group ref="topicref"/>
473 </xs:choice>
474 </xs:sequence>
475 </xs:sequence>
476 </xs:group>
477
478 <xs:attributeGroup name="subjectHead.attributes">
479 <xs:attribute name="navtitle" type="xs:string"/>
480 <xs:attribute name="collection-type">
481 <xs:simpleType>
482 <xs:restriction base="xs:token">
483 <xs:enumeration value="sequence"/>
484 <xs:enumeration value="unordered"/>
485 <xs:enumeration value="-dita-use-conref-target"/>
486 </xs:restriction>
487 </xs:simpleType>
488 </xs:attribute>
489 <xs:attribute name="processing-role" type="processing-role-att.class" />
490 <xs:attribute name="linking" default="normal">
491 <xs:simpleType>
492 <xs:restriction base="xs:token">
493 <xs:enumeration value="normal"/>
494 </xs:restriction>
495 </xs:simpleType>
496 </xs:attribute>
497 <xs:attribute name="toc" type="yesno-att.class"/>
498 <xs:attributeGroup ref="univ-atts"/>
499 <xs:attributeGroup ref="global-atts"/>
500 </xs:attributeGroup>
501 <xs:element name="subjectHead">
502 <xs:complexType>
503 <xs:complexContent>
504 <xs:extension base="subjectHead.class">
505 <xs:attribute name="class" default="- map/topicref subjectScheme/subjectHead "/>
506 </xs:extension>
507 </xs:complexContent>
508 </xs:complexType>
509 </xs:element>
510
511 <!-- LONG NAME: Subject Heading Metadata -->
512 <xs:complexType name="subjectHeadMeta.class">
513 <xs:sequence>
514 <xs:group ref="subjectHeadMeta.content"/>
515 </xs:sequence>
516 <xs:attributeGroup ref="subjectHeadMeta.attributes"/>
517 </xs:complexType>
518
519 <xs:group name="subjectHeadMeta.content">
520 <xs:sequence>
521 <xs:sequence>
522 <xs:group minOccurs="0" ref="navtitle"/>
523 <xs:group minOccurs="0" ref="shortdesc"/>
524 </xs:sequence>
525 </xs:sequence>
526 </xs:group>
527 <xs:attributeGroup name="subjectHeadMeta.attributes">
528 <xs:attribute name="lockmeta" type="yesno-att.class"/>
529 <xs:attributeGroup ref="univ-atts"/>
530 <xs:attributeGroup ref="global-atts"/>
531 </xs:attributeGroup>
532 <xs:element name="subjectHeadMeta">
533 <xs:complexType>
534 <xs:complexContent>
535 <xs:extension base="subjectHeadMeta.class">
536 <xs:attribute name="class" default="- map/topicmeta subjectScheme/subjectHeadMeta "/>
537 </xs:extension>
538 </xs:complexContent>
539 </xs:complexType>
540 </xs:element>
541
542 <!-- LONG NAME: Enumeration definition -->
543 <xs:complexType name="enumerationdef.class">
544 <xs:sequence>
545 <xs:group ref="enumerationdef.content"/>
546 </xs:sequence>
547 <xs:attributeGroup ref="enumerationdef.attributes"/>
548 </xs:complexType>
549
550 <xs:group name="enumerationdef.content">
551 <xs:sequence>
552 <xs:sequence>
553 <xs:group minOccurs="0" ref="elementdef"/>
554 <xs:group ref="attributedef"/>
555 <xs:group maxOccurs="unbounded" ref="subjectdef"/>
556 <xs:group minOccurs="0" ref="defaultSubject"/>
557 <xs:group minOccurs="0" maxOccurs="unbounded" ref="data.elements.incl"/>
558 </xs:sequence>
559 </xs:sequence>
560 </xs:group>
561 <xs:attributeGroup name="enumerationdef.attributes">
562 <xs:attributeGroup ref="id-atts"/>
563 <xs:attribute name="outputclass" type="xs:string"/>
564 <xs:attribute name="status" type="status-atts.class"/>
565 <xs:attribute name="base"/>
566 <xs:attributeGroup ref="global-atts"/>
567 </xs:attributeGroup>
568 <xs:element name="enumerationdef">
569 <xs:complexType>
570 <xs:complexContent>
571 <xs:extension base="enumerationdef.class">
572 <xs:attribute name="class" default="- map/topicref subjectScheme/enumerationdef "/>
573 </xs:extension>
574 </xs:complexContent>
575 </xs:complexType>
576 </xs:element>
577
578 <!-- LONG NAME: Element definition -->
579 <xs:complexType name="elementdef.class">
580 <xs:sequence>
581 <xs:group ref="elementdef.content"/>
582 </xs:sequence>
583 <xs:attributeGroup ref="elementdef.attributes"/>
584 </xs:complexType>
585
586 <xs:group name="elementdef.content">
587 <xs:sequence>
588 <xs:sequence>
589 <xs:group minOccurs="0" maxOccurs="unbounded" ref="data.elements.incl"/>
590 </xs:sequence>
591 </xs:sequence>
592 </xs:group>
593
594 <xs:attributeGroup name="elementdef.attributes">
595 <xs:attributeGroup ref="id-atts"/>
596 <xs:attribute name="name" use="required" type="xs:string"/>
597 <xs:attribute name="outputclass" type="xs:string"/>
598 <xs:attribute name="status" type="status-atts.class"/>
599 <xs:attribute name="translate" default="no" type="yesno-att.class"/>
600 <xs:attribute name="base"/>
601 <xs:attributeGroup ref="global-atts"/>
602 </xs:attributeGroup>
603
604 <xs:element name="elementdef">
605 <xs:complexType>
606 <xs:complexContent>
607 <xs:extension base="elementdef.class">
608 <xs:attribute name="class" default="- topic/data subjectScheme/elementdef "/>
609 </xs:extension>
610 </xs:complexContent>
611 </xs:complexType>
612 </xs:element>
613
614 <!-- LONG NAME: Attribute definition -->
615 <xs:complexType name="attributedef.class">
616 <xs:sequence>
617 <xs:group ref="attributedef.content"/>
618 </xs:sequence>
619 <xs:attributeGroup ref="attributedef.attributes"/>
620 </xs:complexType>
621
622 <xs:group name="attributedef.content">
623 <xs:sequence>
624 <xs:sequence>
625 <xs:group minOccurs="0" maxOccurs="unbounded" ref="data.elements.incl"/>
626 </xs:sequence>
627 </xs:sequence>
628 </xs:group>
629 <xs:attributeGroup name="attributedef.attributes">
630 <xs:attributeGroup ref="id-atts"/>
631 <xs:attribute name="name" use="required" type="xs:string"/>
632 <xs:attribute name="outputclass" type="xs:string"/>
633 <xs:attribute name="status" type="status-atts.class"/>
634 <xs:attribute name="translate" default="no" type="yesno-att.class"/>
635 <xs:attribute name="base"/>
636 <xs:attributeGroup ref="global-atts"/>
637 </xs:attributeGroup>
638
639 <xs:element name="attributedef">
640 <xs:complexType>
641 <xs:complexContent>
642 <xs:extension base="attributedef.class">
643 <xs:attribute name="class" default="- topic/data subjectScheme/attributedef "/>
644 </xs:extension>
645 </xs:complexContent>
646 </xs:complexType>
647 </xs:element>
648
649 <!-- LONG NAME: Default Subject -->
650 <xs:complexType name="defaultSubject.class">
651 <xs:sequence>
652 <xs:group ref="defaultSubject.content"/>
653 </xs:sequence>
654 <xs:attributeGroup ref="defaultSubject.attributes"/>
655 </xs:complexType>
656
657 <xs:group name="defaultSubject.content">
658 <xs:sequence>
659 <xs:sequence>
660 <xs:group minOccurs="0" maxOccurs="unbounded" ref="data.elements.incl"/>
661 </xs:sequence>
662 </xs:sequence>
663 </xs:group>
664 <xs:attributeGroup name="defaultSubject.attributes">
665 <xs:attribute name="navtitle" type="xs:string"/>
666 <xs:attribute name="href" type="xs:string"/>
667 <xs:attribute name="keyref" type="xs:string"/>
668 <xs:attribute name="keys" type="xs:string"/>
669 <xs:attribute name="query" type="xs:string"/>
670 <xs:attribute name="copy-to" type="xs:string"/>
671 <xs:attribute name="outputclass" type="xs:string"/>
672 <xs:attribute name="collection-type" type="collection-type.class"/>
673 <xs:attribute name="type" type="xs:string"/>
674 <xs:attribute name="scope" type="scope-att.class"/>
675 <xs:attribute name="processing-role" type="processing-role-att.class" />
676 <xs:attribute name="locktitle" type="yesno-att.class"/>
677 <xs:attribute name="format" type="xs:string"/>
678 <xs:attribute name="linking" type="linkingtypes.class"/>
679 <xs:attribute name="toc" type="yesno-att.class"/>
680 <xs:attributeGroup ref="univ-atts"/>
681 <xs:attributeGroup ref="global-atts"/>
682 </xs:attributeGroup>
683
684 <xs:element name="defaultSubject">
685 <xs:complexType>
686 <xs:complexContent>
687 <xs:extension base="defaultSubject.class">
688 <xs:attribute name="class" default="- map/topicref subjectScheme/defaultSubject "/>
689 </xs:extension>
690 </xs:complexContent>
691 </xs:complexType>
692 </xs:element>
693
694 <!-- LONG NAME: Related Subjects -->
695 <!--
696 To define roles within a relationship, you can specialize
697 the relatedSubjects container and its contained subjectdef elements,
698 possibly setting the linking attribute to targetonly or sourceonly.
699 For instance, a dependency relationship could contain depended-on
700 and dependent subjects.
701 -->
702 <xs:complexType name="relatedSubjects.class">
703 <xs:sequence>
704 <xs:group ref="relatedSubjects.content"/>
705 </xs:sequence>
706 <xs:attributeGroup ref="relatedSubjects.attributes"/>
707 </xs:complexType>
708
709 <xs:group name="relatedSubjects.content">
710 <xs:sequence>
711 <xs:sequence>
712 <xs:choice minOccurs="0" maxOccurs="unbounded">
713 <xs:group ref="data.elements.incl"/>
714 <xs:group ref="subjectdef"/>
715 <xs:group ref="topicref"/>
716 </xs:choice>
717 </xs:sequence>
718 </xs:sequence>
719 </xs:group>
720 <xs:attributeGroup name="relatedSubjects.attributes">
721 <xs:attribute name="navtitle" type="xs:string"/>
722 <xs:attribute name="href" type="xs:string"/>
723 <xs:attribute name="keyref" type="xs:string"/>
724 <xs:attribute name="keys" type="xs:string"/>
725 <xs:attribute name="query" type="xs:string"/>
726 <xs:attribute name="type" type="xs:string"/>
727 <xs:attribute name="scope" type="scope-att.class"/>
728 <xs:attribute name="processing-role" type="processing-role-att.class" />
729 <xs:attribute name="format" type="xs:string"/>
730 <xs:attribute name="linking" type="linkingtypes.class" default="normal"/>
731 <xs:attributeGroup ref="univ-atts"/>
732 <xs:attributeGroup ref="global-atts"/>
733 </xs:attributeGroup>
734
735 <xs:element name="relatedSubjects">
736 <xs:complexType>
737 <xs:complexContent>
738 <xs:extension base="relatedSubjects.class">
739 <xs:attribute name="class" default="- map/topicref subjectScheme/relatedSubjects "/>
740 </xs:extension>
741 </xs:complexContent>
742 </xs:complexType>
743 </xs:element>
744
745 <!-- LONG NAME: Subject Relationship Table -->
746 <!--
747 Where there are many instances of a subject relationship in which
748 different subjects have defined roles within the relationship,
749 you can use or specialize the subjectRelTable.
750 Note that each row matrixes relationships across columns such that
751 a subject receives relationships to every subject in other columns
752 within the same row.
753 -->
754 <xs:complexType name="subjectRelTable.class">
755 <xs:sequence>
756 <xs:group ref="subjectRelTable.content"/>
757 </xs:sequence>
758 <xs:attributeGroup ref="subjectRelTable.attributes"/>
759 </xs:complexType>
760
761 <xs:group name="subjectRelTable.content">
762 <xs:sequence>
763 <xs:sequence>
764 <xs:group minOccurs="0" ref="title"/>
765 <xs:group minOccurs="0" ref="topicmeta"/>
766 <xs:group minOccurs="0" ref="subjectRelHeader"/>
767 <xs:group maxOccurs="unbounded" ref="subjectRel"/>
768 </xs:sequence>
769 </xs:sequence>
770 </xs:group>
771 <xs:attributeGroup name="subjectRelTable.attributes">
772 <xs:attributeGroup ref="topicref-atts-no-toc"/>
773 <xs:attributeGroup ref="univ-atts"/>
774 <xs:attributeGroup ref="global-atts"/>
775 </xs:attributeGroup>
776 <xs:element name="subjectRelTable">
777 <xs:complexType>
778 <xs:complexContent>
779 <xs:extension base="subjectRelTable.class">
780 <xs:attribute name="class" default="- map/reltable subjectScheme/subjectRelTable "/>
781 </xs:extension>
782 </xs:complexContent>
783 </xs:complexType>
784 </xs:element>
785
786 <!-- LONG NAME: Subject Table Header -->
787 <!--
788 The header defines the role of subjects in each column
789 The role definition can be an informal navtitle or
790 a formal reference
791 -->
792
793 <xs:complexType name="subjectRelHeader.class">
794 <xs:sequence>
795 <xs:group ref="subjectRelHeader.content"/>
796 </xs:sequence>
797 <xs:attributeGroup ref="subjectRelHeader.attributes"/>
798 </xs:complexType>
799
800 <xs:group name="subjectRelHeader.content">
801 <xs:sequence>
802 <xs:sequence>
803 <xs:group maxOccurs="unbounded" ref="subjectRole"/>
804 </xs:sequence>
805 </xs:sequence>
806 </xs:group>
807 <xs:attributeGroup name="subjectRelHeader.attributes">
808 <xs:attributeGroup ref="univ-atts"/>
809 <xs:attributeGroup ref="global-atts"/>
810 </xs:attributeGroup>
811 <xs:element name="subjectRelHeader">
812 <xs:complexType>
813 <xs:complexContent>
814 <xs:extension base="subjectRelHeader.class">
815 <xs:attribute name="class" default="- map/relrow subjectScheme/subjectRelHeader "/>
816 </xs:extension>
817 </xs:complexContent>
818 </xs:complexType>
819 </xs:element>
820
821 <!-- LONG NAME: Subject Table Row -->
822 <xs:complexType name="subjectRel.class">
823 <xs:sequence>
824 <xs:group ref="subjectRel.content"/>
825 </xs:sequence>
826 <xs:attributeGroup ref="subjectRel.attributes"/>
827 </xs:complexType>
828
829 <xs:group name="subjectRel.content">
830 <xs:sequence>
831 <xs:sequence>
832 <xs:group maxOccurs="unbounded" ref="subjectRole"/>
833 </xs:sequence>
834 </xs:sequence>
835 </xs:group>
836 <xs:attributeGroup name="subjectRel.attributes">
837 <xs:attributeGroup ref="univ-atts"/>
838 <xs:attributeGroup ref="global-atts"/>
839 </xs:attributeGroup>
840 <xs:element name="subjectRel">
841 <xs:complexType>
842 <xs:complexContent>
843 <xs:extension base="subjectRel.class">
844 <xs:attribute name="class" default="- map/relrow subjectScheme/subjectRel "/>
845 </xs:extension>
846 </xs:complexContent>
847 </xs:complexType>
848 </xs:element>
849
850 <!-- LONG NAME: Subject Role -->
851 <xs:complexType name="subjectRole.class">
852 <xs:sequence>
853 <xs:group ref="subjectRole.content"/>
854 </xs:sequence>
855 <xs:attributeGroup ref="subjectRole.attributes"/>
856 </xs:complexType>
857
858 <xs:group name="subjectRole.content">
859 <xs:sequence>
860 <xs:choice minOccurs="0" maxOccurs="unbounded">
861 <xs:group ref="data.elements.incl"/>
862 <xs:group ref="subjectdef"/>
863 <xs:group ref="topicref"/>
864 </xs:choice>
865 </xs:sequence>
866 </xs:group>
867
868 <xs:attributeGroup name="subjectRole.attributes">
869 <xs:attributeGroup ref="topicref-atts"/>
870 <xs:attributeGroup ref="univ-atts"/>
871 <xs:attributeGroup ref="global-atts"/>
872 </xs:attributeGroup>
873 <xs:element name="subjectRole">
874 <xs:complexType>
875 <xs:complexContent>
876 <xs:extension base="subjectRole.class">
877 <xs:attribute name="class" default="- map/relcell subjectScheme/subjectRole "/>
878 </xs:extension>
879 </xs:complexContent>
880 </xs:complexType>
881 </xs:element>
882
883 <!-- ============================================================= -->
884 <!-- SPECIALIZATION ATTRIBUTE DECLARATIONS -->
885 <!-- ============================================================= -->
886 </xs:schema>
887 <!-- ================== End DITA Subject Scheme Map ============== -->