1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <!-- ============================================================= -->
|
---|
3 | <!-- HEADER -->
|
---|
4 | <!-- ============================================================= -->
|
---|
5 | <!-- MODULE: DITA BASE XSD -->
|
---|
6 | <!-- VERSION: 1.1 -->
|
---|
7 | <!-- DATE: November 2006 -->
|
---|
8 | <!-- -->
|
---|
9 | <!-- ============================================================= -->
|
---|
10 |
|
---|
11 | <!-- ============================================================= -->
|
---|
12 | <!-- SYSTEM: Darwin Information Typing Architecture (DITA) -->
|
---|
13 | <!-- -->
|
---|
14 | <!-- PURPOSE: Based W3C XML Schema holds all the information -->
|
---|
15 | <!-- types -->
|
---|
16 | <!-- -->
|
---|
17 | <!-- ORIGINAL CREATION DATE: -->
|
---|
18 | <!-- March 2001 -->
|
---|
19 | <!-- -->
|
---|
20 | <!-- (C) Copyright OASIS-Open.org 2005, 2006 -->
|
---|
21 | <!-- (C) Copyright IBM Corporation 2001, 2004. -->
|
---|
22 | <!-- All Rights Reserved. -->
|
---|
23 | <!-- ============================================================= -->
|
---|
24 | <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
|
---|
25 | <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="urn:oasis:names:tc:dita:xsd:xml.xsd:1.1"/>
|
---|
26 | <!-- Add the domains to the base topic XML Schema -->
|
---|
27 | <!-- ================ TOPIC DOMAINS ===================== -->
|
---|
28 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.1"/>
|
---|
29 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.1"/>
|
---|
30 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.1"/>
|
---|
31 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:programmingDomain.xsd:1.1"/>
|
---|
32 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:utilitiesDomain.xsd:1.1"/>
|
---|
33 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:indexingDomain.xsd:1.1"/>
|
---|
34 |
|
---|
35 | <!-- ================ GROUP DEFINITIONS ===================== -->
|
---|
36 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:referenceGrp.xsd:1.1" />
|
---|
37 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:taskGrp.xsd:1.1" />
|
---|
38 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:conceptGrp.xsd:1.1" />
|
---|
39 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:glossaryGrp.xsd:1.1" />
|
---|
40 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclGrp.xsd:1.1"/>
|
---|
41 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclGrp.xsd:1.1"/>
|
---|
42 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topicGrp.xsd:1.1"/>
|
---|
43 |
|
---|
44 | <!-- ================= MODULE INLCUDE DEFINITION ================== -->
|
---|
45 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementMod.xsd:1.1"/>
|
---|
46 | <!-- ======== Table elements ======== -->
|
---|
47 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.1"/>
|
---|
48 | <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
|
---|
49 | <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.1"/>
|
---|
50 |
|
---|
51 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.1">
|
---|
52 | <xs:group name="keyword">
|
---|
53 | <xs:choice>
|
---|
54 | <xs:group ref="keyword"/>
|
---|
55 | <xs:group ref="pr-d-keyword" />
|
---|
56 | <xs:group ref="ui-d-keyword" />
|
---|
57 | <xs:group ref="sw-d-keyword" />
|
---|
58 | </xs:choice>
|
---|
59 | </xs:group>
|
---|
60 |
|
---|
61 | <xs:group name="ph">
|
---|
62 | <xs:choice>
|
---|
63 | <xs:group ref="ph"/>
|
---|
64 | <xs:group ref="pr-d-ph" />
|
---|
65 | <xs:group ref="ui-d-ph" />
|
---|
66 | <xs:group ref="hi-d-ph" />
|
---|
67 | <xs:group ref="sw-d-ph" />
|
---|
68 | </xs:choice>
|
---|
69 | </xs:group>
|
---|
70 |
|
---|
71 | <xs:group name="pre">
|
---|
72 | <xs:choice>
|
---|
73 | <xs:group ref="pre"/>
|
---|
74 | <xs:group ref="pr-d-pre" />
|
---|
75 | <xs:group ref="ui-d-pre" />
|
---|
76 | <xs:group ref="sw-d-pre" />
|
---|
77 | </xs:choice>
|
---|
78 | </xs:group>
|
---|
79 |
|
---|
80 |
|
---|
81 | <xs:group name="dl">
|
---|
82 | <xs:choice>
|
---|
83 | <xs:group ref="dl"/>
|
---|
84 | <xs:group ref="pr-d-dl"/>
|
---|
85 | </xs:choice >
|
---|
86 | </xs:group >
|
---|
87 |
|
---|
88 |
|
---|
89 | <xs:group name="fig">
|
---|
90 | <xs:choice>
|
---|
91 | <xs:group ref="fig"/>
|
---|
92 | <xs:group ref="pr-d-fig"/>
|
---|
93 | <xs:group ref="ut-d-fig" />
|
---|
94 | </xs:choice>
|
---|
95 | </xs:group >
|
---|
96 |
|
---|
97 | <xs:group name="index-base">
|
---|
98 | <xs:choice>
|
---|
99 | <xs:group ref="index-base"/>
|
---|
100 | <xs:group ref="indexing-d-index-base"/>
|
---|
101 | </xs:choice>
|
---|
102 | </xs:group >
|
---|
103 |
|
---|
104 | </xs:redefine>
|
---|
105 |
|
---|
106 | <!-- ================ INFO TYPES ===================== -->
|
---|
107 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:topicMod.xsd:1.1" >
|
---|
108 | <xs:complexType name="topic.class">
|
---|
109 | <xs:complexContent>
|
---|
110 | <xs:extension base="topic.class">
|
---|
111 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
|
---|
112 | </xs:extension>
|
---|
113 | </xs:complexContent>
|
---|
114 | </xs:complexType>
|
---|
115 |
|
---|
116 | <xs:group name="topic-info-types">
|
---|
117 | <xs:choice>
|
---|
118 | <xs:group ref="info-types"/>
|
---|
119 | </xs:choice>
|
---|
120 | </xs:group>
|
---|
121 | </xs:redefine>
|
---|
122 |
|
---|
123 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:conceptMod.xsd:1.1" >
|
---|
124 | <xs:complexType name="concept.class">
|
---|
125 | <xs:complexContent>
|
---|
126 | <xs:extension base="concept.class">
|
---|
127 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
|
---|
128 | </xs:extension>
|
---|
129 | </xs:complexContent>
|
---|
130 | </xs:complexType>
|
---|
131 |
|
---|
132 | <xs:group name="concept-info-types">
|
---|
133 | <xs:choice>
|
---|
134 | <xs:group ref="info-types"/>
|
---|
135 | </xs:choice>
|
---|
136 | </xs:group>
|
---|
137 | </xs:redefine>
|
---|
138 |
|
---|
139 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:taskMod.xsd:1.1" >
|
---|
140 | <xs:complexType name="task.class">
|
---|
141 | <xs:complexContent>
|
---|
142 | <xs:extension base="task.class">
|
---|
143 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
|
---|
144 | </xs:extension>
|
---|
145 | </xs:complexContent>
|
---|
146 | </xs:complexType>
|
---|
147 |
|
---|
148 | <xs:group name="task-info-types">
|
---|
149 | <xs:choice>
|
---|
150 | <xs:group ref="info-types"/>
|
---|
151 | </xs:choice>
|
---|
152 | </xs:group>
|
---|
153 | </xs:redefine>
|
---|
154 |
|
---|
155 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:referenceMod.xsd:1.1" >
|
---|
156 | <xs:complexType name="reference.class">
|
---|
157 | <xs:complexContent>
|
---|
158 | <xs:extension base="reference.class">
|
---|
159 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
|
---|
160 | </xs:extension>
|
---|
161 | </xs:complexContent>
|
---|
162 | </xs:complexType>
|
---|
163 |
|
---|
164 | <xs:group name="reference-info-types">
|
---|
165 | <xs:choice>
|
---|
166 | <xs:group ref="info-types"/>
|
---|
167 | </xs:choice>
|
---|
168 | </xs:group>
|
---|
169 | </xs:redefine>
|
---|
170 |
|
---|
171 | <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:glossaryMod.xsd:1.1" >
|
---|
172 | <xs:complexType name="glossentry.class">
|
---|
173 | <xs:complexContent>
|
---|
174 | <xs:extension base="glossentry.class">
|
---|
175 | <xs:attribute name="domains" type="xs:string" default="(topic ui-d) (topic hi-d) (topic sw-d) (topic pr-d) (topic ut-d) (topic indexing-d)"/>
|
---|
176 | </xs:extension>
|
---|
177 | </xs:complexContent>
|
---|
178 | </xs:complexType>
|
---|
179 |
|
---|
180 | <xs:group name="glossentry-info-types">
|
---|
181 | <xs:choice>
|
---|
182 | <xs:group ref="no-topic-nesting"/>
|
---|
183 | </xs:choice>
|
---|
184 | </xs:group>
|
---|
185 |
|
---|
186 | </xs:redefine>
|
---|
187 |
|
---|
188 | <xs:group name="ditabase-info-types">
|
---|
189 | <xs:choice>
|
---|
190 | <xs:group ref="info-types"/>
|
---|
191 | </xs:choice>
|
---|
192 | </xs:group>
|
---|
193 |
|
---|
194 | <xs:group name="info-types">
|
---|
195 | <xs:choice>
|
---|
196 | <xs:element ref="topic"/>
|
---|
197 | <xs:element ref="task"/>
|
---|
198 | <xs:element ref="concept"/>
|
---|
199 | <xs:element ref="reference"/>
|
---|
200 | <xs:element ref="glossentry"/>
|
---|
201 | </xs:choice>
|
---|
202 | </xs:group>
|
---|
203 |
|
---|
204 | <xs:annotation>
|
---|
205 | <xs:documentation>The <<keyword>dita</keyword>> element provides a top-level container
|
---|
206 | for multiple topics when you create documents using the ditabase DTD. The
|
---|
207 | <<keyword>dita</keyword>> element lets you create any sequence of concept,
|
---|
208 | task, and reference topics, and the ditabase DTD lets you further nest these
|
---|
209 | topic types inside each other. The <<keyword>dita</keyword>> element has
|
---|
210 | no particular output implications; it simply allows you to create multiple
|
---|
211 | topics of different types at the same level in a single document.</xs:documentation>
|
---|
212 | </xs:annotation>
|
---|
213 | <xs:element name="dita" type="dita.class"/>
|
---|
214 | <xs:complexType name="dita.class">
|
---|
215 | <xs:choice maxOccurs="unbounded">
|
---|
216 | <xs:group ref="ditabase-info-types"/>
|
---|
217 | </xs:choice>
|
---|
218 | <xs:attributeGroup ref="global-atts"/>
|
---|
219 | </xs:complexType>
|
---|
220 |
|
---|
221 | </xs:schema>
|
---|