switch from embedding LIBLITERAL in _stripixes() to being a passed argument with...
[scons.git] / doc / xsd / calstblx.xsd
blob6f899a3acf19285b9417c9f35619f47500a76217
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ...................................................................... -->
3 <!-- SCons DocBook V4.5-Based extension V1.0 XML CALS Table Model V4.5 .... -->
4 <!-- File calstblx.xsd .................................................... -->
6 <!-- Copyright (c) 2001-7,2010,2011,2012 The SCons Foundation
8 Permission is hereby granted, free of charge, to any person obtaining
9 a copy of this software and associated documentation files (the
10 "Software"), to deal in the Software without restriction, including
11 without limitation the rights to use, copy, modify, merge, publish,
12 distribute, sublicense, and/or sell copies of the Software, and to
13 permit persons to whom the Software is furnished to do so, subject to
14 the following conditions:
16 The above copyright notice and this permission notice shall be included
17 in all copies or substantial portions of the Software.
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
20 KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
21 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
22 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
23 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
24 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
25 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
27 This DTD extension is based on the DocBook CALS Table Model V4.5 with:
29 Copyright 1992-2002 HaL Computer Systems, Inc.,
30 O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
31 Corporation, Norman Walsh, Sun Microsystems, Inc., and the
32 Organization for the Advancement of Structured Information
33 Standards (OASIS).
35 This DTD is based on the CALS Table Model
36 PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
38 $Id: calstblx.dtd 6340 2006-10-03 13:23:24Z nwalsh $
40 Please direct all questions, bug reports, or suggestions for
41 changes to the docbook@lists.oasis-open.org mailing list. For more
42 information, see http://www.oasis-open.org/docbook/.
43 For the modified SCons extension files
45 scons.xsd, dbpoolx.xsd,
47 you can write to its developer mailing list. Check out
48 http://www.scons.org/ and http://www.scons.org/lists.php.
50 -->
51 <!-- ...................................................................... -->
52 <!--
53 This module contains the definitions for the CALS Table Model
54 converted to XML. It has been modified slightly for use in the
55 combined HTML/CALS models supported by DocBook V4.5.
56 -->
57 <!--
58 These definitions are not directly related to the table model, but are
59 used in the default CALS table model and are usually defined elsewhere
60 (and prior to the inclusion of this table module) in a CALS DTD.
61 -->
62 <!--
63 no if zero(s),
64 yes if any other digits value
65 -->
66 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
67 <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
68 <xs:simpleType name="yesorno">
69 <xs:restriction base="xs:string"/>
70 </xs:simpleType>
71 <xs:group name="titles">
72 <xs:sequence>
73 <xs:element minOccurs="0" ref="title"/>
74 </xs:sequence>
75 </xs:group>
76 <!-- default for use in entry content -->
77 <!--
78 The parameter entities as defined below provide the CALS table model
79 as published (as part of the Example DTD) in MIL-HDBK-28001.
81 These following declarations provide the CALS-compliant default definitions
82 for these entities. However, these entities can and should be redefined
83 (by giving the appropriate parameter entity declaration(s) prior to the
84 reference to this Table Model declaration set entity) to fit the needs
85 of the current application.
86 -->
87 <xs:group name="tbl.table-titles.mdl">
88 <xs:sequence>
89 <xs:group ref="titles"/>
90 </xs:sequence>
91 </xs:group>
92 <xs:group name="tbl.table-main.mdl">
93 <xs:choice>
94 <xs:element maxOccurs="unbounded" ref="tgroup"/>
95 <xs:element maxOccurs="unbounded" ref="graphic"/>
96 </xs:choice>
97 </xs:group>
98 <xs:complexType name="tbl.tgroup.mdl">
99 <xs:sequence>
100 <xs:element minOccurs="0" maxOccurs="unbounded" ref="colspec"/>
101 <xs:element minOccurs="0" maxOccurs="unbounded" ref="spanspec"/>
102 <xs:element minOccurs="0" ref="thead"/>
103 <xs:element minOccurs="0" ref="tfoot"/>
104 <xs:element ref="tbody"/>
105 </xs:sequence>
106 </xs:complexType>
107 <xs:attributeGroup name="tbl.tgroup.att">
108 <xs:attribute name="tgroupstyle"/>
109 </xs:attributeGroup>
110 <xs:complexType name="tbl.row.mdl">
111 <xs:choice maxOccurs="unbounded">
112 <xs:element ref="entry"/>
113 <xs:element ref="entrytbl"/>
114 </xs:choice>
115 </xs:complexType>
116 <xs:complexType name="tbl.entrytbl.mdl">
117 <xs:sequence>
118 <xs:element minOccurs="0" maxOccurs="unbounded" ref="colspec"/>
119 <xs:element minOccurs="0" maxOccurs="unbounded" ref="spanspec"/>
120 <xs:element minOccurs="0" ref="thead"/>
121 <xs:element ref="tbody"/>
122 </xs:sequence>
123 </xs:complexType>
124 <!-- ===== Element and attribute declarations follow. ===== -->
125 <!-- doc:A formal table in a document. -->
126 <xs:element name="table" substitutionGroup="formal.class">
127 <xs:complexType>
128 <xs:complexContent>
129 <xs:extension base="tbl.table.mdl">
130 <xs:attributeGroup ref="table.attlist"/>
131 </xs:extension>
132 </xs:complexContent>
133 </xs:complexType>
134 </xs:element>
135 <xs:attributeGroup name="table.attlist">
136 <xs:attribute name="frame" type="tbl.frame.attval"/>
137 <xs:attribute name="colsep" type="yesorno"/>
138 <xs:attribute name="rowsep" type="yesorno"/>
139 <xs:attributeGroup ref="tbl.table.att"/>
140 <xs:attributeGroup ref="bodyatt"/>
141 <xs:attributeGroup ref="secur"/>
142 </xs:attributeGroup>
143 <!-- doc:A wrapper for the main content of a table, or part of a table. -->
144 <xs:element name="tgroup">
145 <xs:complexType>
146 <xs:complexContent>
147 <xs:extension base="tbl.tgroup.mdl">
148 <xs:attributeGroup ref="tgroup.attlist"/>
149 </xs:extension>
150 </xs:complexContent>
151 </xs:complexType>
152 </xs:element>
153 <xs:attributeGroup name="tgroup.attlist">
154 <xs:attribute name="cols" use="required"/>
155 <xs:attributeGroup ref="tbl.tgroup.att"/>
156 <xs:attribute name="colsep" type="yesorno"/>
157 <xs:attribute name="rowsep" type="yesorno"/>
158 <xs:attribute name="align">
159 <xs:simpleType>
160 <xs:restriction base="xs:token">
161 <xs:enumeration value="left"/>
162 <xs:enumeration value="right"/>
163 <xs:enumeration value="center"/>
164 <xs:enumeration value="justify"/>
165 <xs:enumeration value="char"/>
166 </xs:restriction>
167 </xs:simpleType>
168 </xs:attribute>
169 <xs:attribute name="char"/>
170 <xs:attribute name="charoff"/>
171 <xs:attributeGroup ref="secur"/>
172 </xs:attributeGroup>
173 <!-- doc:Specifications for a column in a table. -->
174 <xs:element name="colspec">
175 <xs:complexType>
176 <xs:attributeGroup ref="colspec.attlist"/>
177 </xs:complexType>
178 </xs:element>
179 <xs:attributeGroup name="colspec.attlist">
180 <xs:attribute name="colnum"/>
181 <xs:attribute name="colname"/>
182 <xs:attribute name="colwidth"/>
183 <xs:attribute name="colsep" type="yesorno"/>
184 <xs:attribute name="rowsep" type="yesorno"/>
185 <xs:attribute name="align">
186 <xs:simpleType>
187 <xs:restriction base="xs:token">
188 <xs:enumeration value="left"/>
189 <xs:enumeration value="right"/>
190 <xs:enumeration value="center"/>
191 <xs:enumeration value="justify"/>
192 <xs:enumeration value="char"/>
193 </xs:restriction>
194 </xs:simpleType>
195 </xs:attribute>
196 <xs:attribute name="char"/>
197 <xs:attribute name="charoff"/>
198 </xs:attributeGroup>
199 <!-- doc:Formatting information for a spanned column in a table. -->
200 <xs:element name="spanspec">
201 <xs:complexType>
202 <xs:attributeGroup ref="spanspec.attlist"/>
203 </xs:complexType>
204 </xs:element>
205 <xs:attributeGroup name="spanspec.attlist">
206 <xs:attribute name="namest" use="required"/>
207 <xs:attribute name="nameend" use="required"/>
208 <xs:attribute name="spanname" use="required"/>
209 <xs:attribute name="colsep" type="yesorno"/>
210 <xs:attribute name="rowsep" type="yesorno"/>
211 <xs:attribute name="align">
212 <xs:simpleType>
213 <xs:restriction base="xs:token">
214 <xs:enumeration value="left"/>
215 <xs:enumeration value="right"/>
216 <xs:enumeration value="center"/>
217 <xs:enumeration value="justify"/>
218 <xs:enumeration value="char"/>
219 </xs:restriction>
220 </xs:simpleType>
221 </xs:attribute>
222 <xs:attribute name="char"/>
223 <xs:attribute name="charoff"/>
224 </xs:attributeGroup>
225 <!-- doc:A table header consisting of one or more rows. -->
226 <xs:element name="thead">
227 <xs:complexType>
228 <xs:complexContent>
229 <xs:extension base="tbl.hdft.mdl">
230 <xs:attributeGroup ref="thead.attlist"/>
231 </xs:extension>
232 </xs:complexContent>
233 </xs:complexType>
234 </xs:element>
235 <xs:attributeGroup name="thead.attlist">
236 <xs:attribute name="valign">
237 <xs:simpleType>
238 <xs:restriction base="xs:token">
239 <xs:enumeration value="top"/>
240 <xs:enumeration value="middle"/>
241 <xs:enumeration value="bottom"/>
242 </xs:restriction>
243 </xs:simpleType>
244 </xs:attribute>
245 <xs:attributeGroup ref="secur"/>
246 </xs:attributeGroup>
247 <!-- doc:A table footer consisting of one or more rows. -->
248 <xs:element name="tfoot">
249 <xs:complexType>
250 <xs:complexContent>
251 <xs:extension base="tbl.hdft.mdl">
252 <xs:attributeGroup ref="tfoot.attlist"/>
253 </xs:extension>
254 </xs:complexContent>
255 </xs:complexType>
256 </xs:element>
257 <xs:attributeGroup name="tfoot.attlist">
258 <xs:attribute name="valign">
259 <xs:simpleType>
260 <xs:restriction base="xs:token">
261 <xs:enumeration value="top"/>
262 <xs:enumeration value="middle"/>
263 <xs:enumeration value="bottom"/>
264 </xs:restriction>
265 </xs:simpleType>
266 </xs:attribute>
267 <xs:attributeGroup ref="secur"/>
268 </xs:attributeGroup>
269 <!-- doc:A wrapper for the rows of a table or informal table. -->
270 <xs:element name="tbody">
271 <xs:complexType>
272 <xs:complexContent>
273 <xs:extension base="tbl.tbody.mdl">
274 <xs:attributeGroup ref="tbody.attlist"/>
275 </xs:extension>
276 </xs:complexContent>
277 </xs:complexType>
278 </xs:element>
279 <xs:attributeGroup name="tbody.attlist">
280 <xs:attribute name="valign">
281 <xs:simpleType>
282 <xs:restriction base="xs:token">
283 <xs:enumeration value="top"/>
284 <xs:enumeration value="middle"/>
285 <xs:enumeration value="bottom"/>
286 </xs:restriction>
287 </xs:simpleType>
288 </xs:attribute>
289 <xs:attributeGroup ref="secur"/>
290 </xs:attributeGroup>
291 <!-- doc:A row in a table. -->
292 <xs:element name="row">
293 <xs:complexType>
294 <xs:complexContent>
295 <xs:extension base="tbl.row.mdl">
296 <xs:attributeGroup ref="row.attlist"/>
297 </xs:extension>
298 </xs:complexContent>
299 </xs:complexType>
300 </xs:element>
301 <xs:attributeGroup name="row.attlist">
302 <xs:attribute name="rowsep" type="yesorno"/>
303 <xs:attribute name="valign">
304 <xs:simpleType>
305 <xs:restriction base="xs:token">
306 <xs:enumeration value="top"/>
307 <xs:enumeration value="middle"/>
308 <xs:enumeration value="bottom"/>
309 </xs:restriction>
310 </xs:simpleType>
311 </xs:attribute>
312 <xs:attributeGroup ref="secur"/>
313 </xs:attributeGroup>
314 <!-- doc:A subtable appearing in place of an Entry in a table. -->
315 <xs:element name="entrytbl">
316 <xs:complexType>
317 <xs:complexContent>
318 <xs:extension base="tbl.entrytbl.mdl">
319 <xs:attributeGroup ref="entrytbl.attlist"/>
320 </xs:extension>
321 </xs:complexContent>
322 </xs:complexType>
323 </xs:element>
324 <xs:attributeGroup name="entrytbl.attlist">
325 <xs:attribute name="cols" use="required"/>
326 <xs:attributeGroup ref="tbl.tgroup.att"/>
327 <xs:attribute name="colname"/>
328 <xs:attribute name="spanname"/>
329 <xs:attribute name="namest"/>
330 <xs:attribute name="nameend"/>
331 <xs:attribute name="colsep" type="yesorno"/>
332 <xs:attribute name="rowsep" type="yesorno"/>
333 <xs:attribute name="align">
334 <xs:simpleType>
335 <xs:restriction base="xs:token">
336 <xs:enumeration value="left"/>
337 <xs:enumeration value="right"/>
338 <xs:enumeration value="center"/>
339 <xs:enumeration value="justify"/>
340 <xs:enumeration value="char"/>
341 </xs:restriction>
342 </xs:simpleType>
343 </xs:attribute>
344 <xs:attribute name="char"/>
345 <xs:attribute name="charoff"/>
346 <xs:attributeGroup ref="secur"/>
347 </xs:attributeGroup>
348 <!-- doc:A cell in a table. -->
349 <xs:element name="entry">
350 <xs:complexType mixed="true">
351 <xs:group minOccurs="0" maxOccurs="unbounded" ref="tbl.entry.mdl"/>
352 <xs:attributeGroup ref="entry.attlist"/>
353 </xs:complexType>
354 </xs:element>
355 <xs:attributeGroup name="entry.attlist">
356 <xs:attribute name="colname"/>
357 <xs:attribute name="namest"/>
358 <xs:attribute name="nameend"/>
359 <xs:attribute name="spanname"/>
360 <xs:attribute name="morerows"/>
361 <xs:attribute name="colsep" type="yesorno"/>
362 <xs:attribute name="rowsep" type="yesorno"/>
363 <xs:attribute name="align">
364 <xs:simpleType>
365 <xs:restriction base="xs:token">
366 <xs:enumeration value="left"/>
367 <xs:enumeration value="right"/>
368 <xs:enumeration value="center"/>
369 <xs:enumeration value="justify"/>
370 <xs:enumeration value="char"/>
371 </xs:restriction>
372 </xs:simpleType>
373 </xs:attribute>
374 <xs:attribute name="char"/>
375 <xs:attribute name="charoff"/>
376 <xs:attribute name="rotate" type="yesorno"/>
377 <xs:attribute name="valign">
378 <xs:simpleType>
379 <xs:restriction base="xs:token">
380 <xs:enumeration value="top"/>
381 <xs:enumeration value="middle"/>
382 <xs:enumeration value="bottom"/>
383 </xs:restriction>
384 </xs:simpleType>
385 </xs:attribute>
386 <xs:attributeGroup ref="secur"/>
387 </xs:attributeGroup>
388 </xs:schema>
389 <!-- End of SCons DocBook V4.5-Based extension V1.0 XML CALS Table Model V4.5 ... -->
390 <!-- ............................................................................ -->