1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="">
|
---|
3 | <!-- ...................................................................... -->
|
---|
4 | <!-- DocBook CALS Table Model V4.5 ........................................ -->
|
---|
5 | <!-- File calstblx.mod .................................................... -->
|
---|
6 | <!--
|
---|
7 | Copyright 1992-2002 HaL Computer Systems, Inc.,
|
---|
8 | O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
|
---|
9 | Corporation, Norman Walsh, Sun Microsystems, Inc., and the
|
---|
10 | Organization for the Advancement of Structured Information
|
---|
11 | Standards (OASIS).
|
---|
12 |
|
---|
13 | This DTD is based on the CALS Table Model
|
---|
14 | PUBLIC "-//USA-DOD//DTD Table Model 951010//EN"
|
---|
15 |
|
---|
16 | $Id: calstblx.dtd 6340 2006-10-03 13:23:24Z nwalsh $
|
---|
17 |
|
---|
18 | Permission to use, copy, modify and distribute the DocBook DTD
|
---|
19 | and its accompanying documentation for any purpose and without fee
|
---|
20 | is hereby granted in perpetuity, provided that the above copyright
|
---|
21 | notice and this paragraph appear in all copies. The copyright
|
---|
22 | holders make no representation about the suitability of the DTD for
|
---|
23 | any purpose. It is provided "as is" without expressed or implied
|
---|
24 | warranty.
|
---|
25 |
|
---|
26 | If you modify the DocBook DTD in any way, except for declaring and
|
---|
27 | referencing additional sets of general entities and declaring
|
---|
28 | additional notations, label your DTD as a variant of DocBook. See
|
---|
29 | the maintenance documentation for more information.
|
---|
30 |
|
---|
31 | Please direct all questions, bug reports, or suggestions for
|
---|
32 | changes to the docbook@lists.oasis-open.org mailing list. For more
|
---|
33 | information, see http://www.oasis-open.org/docbook/.
|
---|
34 | -->
|
---|
35 | <!-- ...................................................................... -->
|
---|
36 | <!--
|
---|
37 | This module contains the definitions for the CALS Table Model
|
---|
38 | converted to XML. It has been modified slightly for use in the
|
---|
39 | combined HTML/CALS models supported by DocBook V4.5.
|
---|
40 | -->
|
---|
41 | <!--
|
---|
42 | These definitions are not directly related to the table model, but are
|
---|
43 | used in the default CALS table model and are usually defined elsewhere
|
---|
44 | (and prior to the inclusion of this table module) in a CALS DTD.
|
---|
45 | -->
|
---|
46 | <!--
|
---|
47 | no if zero(s),
|
---|
48 | yes if any other digits value
|
---|
49 | -->
|
---|
50 | <define name="yesorno">
|
---|
51 | <data type="string"/>
|
---|
52 | </define>
|
---|
53 | <define name="titles">
|
---|
54 | <optional>
|
---|
55 | <ref name="title"/>
|
---|
56 | </optional>
|
---|
57 | </define>
|
---|
58 | <!-- default for use in entry content -->
|
---|
59 | <!--
|
---|
60 | The parameter entities as defined below provide the CALS table model
|
---|
61 | as published (as part of the Example DTD) in MIL-HDBK-28001.
|
---|
62 |
|
---|
63 | These following declarations provide the CALS-compliant default definitions
|
---|
64 | for these entities. However, these entities can and should be redefined
|
---|
65 | (by giving the appropriate parameter entity declaration(s) prior to the
|
---|
66 | reference to this Table Model declaration set entity) to fit the needs
|
---|
67 | of the current application.
|
---|
68 | -->
|
---|
69 | <define name="tbl.table-titles.mdl">
|
---|
70 | <ref name="titles"/>
|
---|
71 | </define>
|
---|
72 | <define name="tbl.table-main.mdl">
|
---|
73 | <choice>
|
---|
74 | <oneOrMore>
|
---|
75 | <ref name="tgroup"/>
|
---|
76 | </oneOrMore>
|
---|
77 | <oneOrMore>
|
---|
78 | <ref name="graphic"/>
|
---|
79 | </oneOrMore>
|
---|
80 | </choice>
|
---|
81 | </define>
|
---|
82 | <define name="tbl.tgroup.mdl">
|
---|
83 | <zeroOrMore>
|
---|
84 | <ref name="colspec"/>
|
---|
85 | </zeroOrMore>
|
---|
86 | <zeroOrMore>
|
---|
87 | <ref name="spanspec"/>
|
---|
88 | </zeroOrMore>
|
---|
89 | <optional>
|
---|
90 | <ref name="thead"/>
|
---|
91 | </optional>
|
---|
92 | <optional>
|
---|
93 | <ref name="tfoot"/>
|
---|
94 | </optional>
|
---|
95 | <ref name="tbody"/>
|
---|
96 | </define>
|
---|
97 | <define name="tbl.tgroup.att">
|
---|
98 | <optional>
|
---|
99 | <attribute name="tgroupstyle"/>
|
---|
100 | </optional>
|
---|
101 | </define>
|
---|
102 | <define name="tbl.row.mdl">
|
---|
103 | <oneOrMore>
|
---|
104 | <choice>
|
---|
105 | <ref name="entry"/>
|
---|
106 | <ref name="entrytbl"/>
|
---|
107 | </choice>
|
---|
108 | </oneOrMore>
|
---|
109 | </define>
|
---|
110 | <define name="tbl.entrytbl.mdl">
|
---|
111 | <zeroOrMore>
|
---|
112 | <ref name="colspec"/>
|
---|
113 | </zeroOrMore>
|
---|
114 | <zeroOrMore>
|
---|
115 | <ref name="spanspec"/>
|
---|
116 | </zeroOrMore>
|
---|
117 | <optional>
|
---|
118 | <ref name="thead"/>
|
---|
119 | </optional>
|
---|
120 | <ref name="tbody"/>
|
---|
121 | </define>
|
---|
122 | <!-- ===== Element and attribute declarations follow. ===== -->
|
---|
123 | <!-- doc:A formal table in a document. -->
|
---|
124 | <define name="table">
|
---|
125 | <element name="table">
|
---|
126 | <ref name="table.attlist"/>
|
---|
127 | <ref name="tbl.table.mdl"/>
|
---|
128 | </element>
|
---|
129 | </define>
|
---|
130 | <define name="table.attlist" combine="interleave">
|
---|
131 | <optional>
|
---|
132 | <attribute name="frame">
|
---|
133 | <ref name="tbl.frame.attval"/>
|
---|
134 | </attribute>
|
---|
135 | </optional>
|
---|
136 | <optional>
|
---|
137 | <attribute name="colsep">
|
---|
138 | <ref name="yesorno"/>
|
---|
139 | </attribute>
|
---|
140 | </optional>
|
---|
141 | <optional>
|
---|
142 | <attribute name="rowsep">
|
---|
143 | <ref name="yesorno"/>
|
---|
144 | </attribute>
|
---|
145 | </optional>
|
---|
146 | <ref name="tbl.table.att"/>
|
---|
147 | <ref name="bodyatt"/>
|
---|
148 | <ref name="secur"/>
|
---|
149 | </define>
|
---|
150 | <!-- doc:A wrapper for the main content of a table, or part of a table. -->
|
---|
151 | <define name="tgroup">
|
---|
152 | <element name="tgroup">
|
---|
153 | <ref name="tgroup.attlist"/>
|
---|
154 | <ref name="tbl.tgroup.mdl"/>
|
---|
155 | </element>
|
---|
156 | </define>
|
---|
157 | <define name="tgroup.attlist" combine="interleave">
|
---|
158 | <attribute name="cols"/>
|
---|
159 | <ref name="tbl.tgroup.att"/>
|
---|
160 | <optional>
|
---|
161 | <attribute name="colsep">
|
---|
162 | <ref name="yesorno"/>
|
---|
163 | </attribute>
|
---|
164 | </optional>
|
---|
165 | <optional>
|
---|
166 | <attribute name="rowsep">
|
---|
167 | <ref name="yesorno"/>
|
---|
168 | </attribute>
|
---|
169 | </optional>
|
---|
170 | <optional>
|
---|
171 | <attribute name="align">
|
---|
172 | <choice>
|
---|
173 | <value>left</value>
|
---|
174 | <value>right</value>
|
---|
175 | <value>center</value>
|
---|
176 | <value>justify</value>
|
---|
177 | <value>char</value>
|
---|
178 | </choice>
|
---|
179 | </attribute>
|
---|
180 | </optional>
|
---|
181 | <optional>
|
---|
182 | <attribute name="char"/>
|
---|
183 | </optional>
|
---|
184 | <optional>
|
---|
185 | <attribute name="charoff"/>
|
---|
186 | </optional>
|
---|
187 | <ref name="secur"/>
|
---|
188 | </define>
|
---|
189 | <!-- doc:Specifications for a column in a table. -->
|
---|
190 | <define name="colspec">
|
---|
191 | <element name="colspec">
|
---|
192 | <ref name="colspec.attlist"/>
|
---|
193 | <empty/>
|
---|
194 | </element>
|
---|
195 | </define>
|
---|
196 | <define name="colspec.attlist" combine="interleave">
|
---|
197 | <optional>
|
---|
198 | <attribute name="colnum"/>
|
---|
199 | </optional>
|
---|
200 | <optional>
|
---|
201 | <attribute name="colname"/>
|
---|
202 | </optional>
|
---|
203 | <optional>
|
---|
204 | <attribute name="colwidth"/>
|
---|
205 | </optional>
|
---|
206 | <optional>
|
---|
207 | <attribute name="colsep">
|
---|
208 | <ref name="yesorno"/>
|
---|
209 | </attribute>
|
---|
210 | </optional>
|
---|
211 | <optional>
|
---|
212 | <attribute name="rowsep">
|
---|
213 | <ref name="yesorno"/>
|
---|
214 | </attribute>
|
---|
215 | </optional>
|
---|
216 | <optional>
|
---|
217 | <attribute name="align">
|
---|
218 | <choice>
|
---|
219 | <value>left</value>
|
---|
220 | <value>right</value>
|
---|
221 | <value>center</value>
|
---|
222 | <value>justify</value>
|
---|
223 | <value>char</value>
|
---|
224 | </choice>
|
---|
225 | </attribute>
|
---|
226 | </optional>
|
---|
227 | <optional>
|
---|
228 | <attribute name="char"/>
|
---|
229 | </optional>
|
---|
230 | <optional>
|
---|
231 | <attribute name="charoff"/>
|
---|
232 | </optional>
|
---|
233 | </define>
|
---|
234 | <!-- doc:Formatting information for a spanned column in a table. -->
|
---|
235 | <define name="spanspec">
|
---|
236 | <element name="spanspec">
|
---|
237 | <ref name="spanspec.attlist"/>
|
---|
238 | <empty/>
|
---|
239 | </element>
|
---|
240 | </define>
|
---|
241 | <define name="spanspec.attlist" combine="interleave">
|
---|
242 | <attribute name="namest"/>
|
---|
243 | <attribute name="nameend"/>
|
---|
244 | <attribute name="spanname"/>
|
---|
245 | <optional>
|
---|
246 | <attribute name="colsep">
|
---|
247 | <ref name="yesorno"/>
|
---|
248 | </attribute>
|
---|
249 | </optional>
|
---|
250 | <optional>
|
---|
251 | <attribute name="rowsep">
|
---|
252 | <ref name="yesorno"/>
|
---|
253 | </attribute>
|
---|
254 | </optional>
|
---|
255 | <optional>
|
---|
256 | <attribute name="align">
|
---|
257 | <choice>
|
---|
258 | <value>left</value>
|
---|
259 | <value>right</value>
|
---|
260 | <value>center</value>
|
---|
261 | <value>justify</value>
|
---|
262 | <value>char</value>
|
---|
263 | </choice>
|
---|
264 | </attribute>
|
---|
265 | </optional>
|
---|
266 | <optional>
|
---|
267 | <attribute name="char"/>
|
---|
268 | </optional>
|
---|
269 | <optional>
|
---|
270 | <attribute name="charoff"/>
|
---|
271 | </optional>
|
---|
272 | </define>
|
---|
273 | <!-- doc:A table header consisting of one or more rows. -->
|
---|
274 | <define name="thead">
|
---|
275 | <element name="thead">
|
---|
276 | <ref name="thead.attlist"/>
|
---|
277 | <ref name="tbl.hdft.mdl"/>
|
---|
278 | </element>
|
---|
279 | </define>
|
---|
280 | <define name="thead.attlist" combine="interleave">
|
---|
281 | <optional>
|
---|
282 | <attribute name="valign">
|
---|
283 | <choice>
|
---|
284 | <value>top</value>
|
---|
285 | <value>middle</value>
|
---|
286 | <value>bottom</value>
|
---|
287 | </choice>
|
---|
288 | </attribute>
|
---|
289 | </optional>
|
---|
290 | <ref name="secur"/>
|
---|
291 | </define>
|
---|
292 | <!-- doc:A table footer consisting of one or more rows. -->
|
---|
293 | <define name="tfoot">
|
---|
294 | <element name="tfoot">
|
---|
295 | <ref name="tfoot.attlist"/>
|
---|
296 | <ref name="tbl.hdft.mdl"/>
|
---|
297 | </element>
|
---|
298 | </define>
|
---|
299 | <define name="tfoot.attlist" combine="interleave">
|
---|
300 | <optional>
|
---|
301 | <attribute name="valign">
|
---|
302 | <choice>
|
---|
303 | <value>top</value>
|
---|
304 | <value>middle</value>
|
---|
305 | <value>bottom</value>
|
---|
306 | </choice>
|
---|
307 | </attribute>
|
---|
308 | </optional>
|
---|
309 | <ref name="secur"/>
|
---|
310 | </define>
|
---|
311 | <!-- doc:A wrapper for the rows of a table or informal table. -->
|
---|
312 | <define name="tbody">
|
---|
313 | <element name="tbody">
|
---|
314 | <ref name="tbody.attlist"/>
|
---|
315 | <ref name="tbl.tbody.mdl"/>
|
---|
316 | </element>
|
---|
317 | </define>
|
---|
318 | <define name="tbody.attlist" combine="interleave">
|
---|
319 | <optional>
|
---|
320 | <attribute name="valign">
|
---|
321 | <choice>
|
---|
322 | <value>top</value>
|
---|
323 | <value>middle</value>
|
---|
324 | <value>bottom</value>
|
---|
325 | </choice>
|
---|
326 | </attribute>
|
---|
327 | </optional>
|
---|
328 | <ref name="secur"/>
|
---|
329 | </define>
|
---|
330 | <!-- doc:A row in a table. -->
|
---|
331 | <define name="row">
|
---|
332 | <element name="row">
|
---|
333 | <ref name="row.attlist"/>
|
---|
334 | <ref name="tbl.row.mdl"/>
|
---|
335 | </element>
|
---|
336 | </define>
|
---|
337 | <define name="row.attlist" combine="interleave">
|
---|
338 | <optional>
|
---|
339 | <attribute name="rowsep">
|
---|
340 | <ref name="yesorno"/>
|
---|
341 | </attribute>
|
---|
342 | </optional>
|
---|
343 | <optional>
|
---|
344 | <attribute name="valign">
|
---|
345 | <choice>
|
---|
346 | <value>top</value>
|
---|
347 | <value>middle</value>
|
---|
348 | <value>bottom</value>
|
---|
349 | </choice>
|
---|
350 | </attribute>
|
---|
351 | </optional>
|
---|
352 | <ref name="secur"/>
|
---|
353 | </define>
|
---|
354 | <!-- doc:A subtable appearing in place of an Entry in a table. -->
|
---|
355 | <define name="entrytbl">
|
---|
356 | <element name="entrytbl">
|
---|
357 | <ref name="entrytbl.attlist"/>
|
---|
358 | <ref name="tbl.entrytbl.mdl"/>
|
---|
359 | </element>
|
---|
360 | </define>
|
---|
361 | <define name="entrytbl.attlist" combine="interleave">
|
---|
362 | <attribute name="cols"/>
|
---|
363 | <ref name="tbl.tgroup.att"/>
|
---|
364 | <optional>
|
---|
365 | <attribute name="colname"/>
|
---|
366 | </optional>
|
---|
367 | <optional>
|
---|
368 | <attribute name="spanname"/>
|
---|
369 | </optional>
|
---|
370 | <optional>
|
---|
371 | <attribute name="namest"/>
|
---|
372 | </optional>
|
---|
373 | <optional>
|
---|
374 | <attribute name="nameend"/>
|
---|
375 | </optional>
|
---|
376 | <optional>
|
---|
377 | <attribute name="colsep">
|
---|
378 | <ref name="yesorno"/>
|
---|
379 | </attribute>
|
---|
380 | </optional>
|
---|
381 | <optional>
|
---|
382 | <attribute name="rowsep">
|
---|
383 | <ref name="yesorno"/>
|
---|
384 | </attribute>
|
---|
385 | </optional>
|
---|
386 | <optional>
|
---|
387 | <attribute name="align">
|
---|
388 | <choice>
|
---|
389 | <value>left</value>
|
---|
390 | <value>right</value>
|
---|
391 | <value>center</value>
|
---|
392 | <value>justify</value>
|
---|
393 | <value>char</value>
|
---|
394 | </choice>
|
---|
395 | </attribute>
|
---|
396 | </optional>
|
---|
397 | <optional>
|
---|
398 | <attribute name="char"/>
|
---|
399 | </optional>
|
---|
400 | <optional>
|
---|
401 | <attribute name="charoff"/>
|
---|
402 | </optional>
|
---|
403 | <ref name="secur"/>
|
---|
404 | </define>
|
---|
405 | <!-- doc:A cell in a table. -->
|
---|
406 | <define name="entry">
|
---|
407 | <element name="entry">
|
---|
408 | <ref name="entry.attlist"/>
|
---|
409 | <zeroOrMore>
|
---|
410 | <ref name="tbl.entry.mdl"/>
|
---|
411 | </zeroOrMore>
|
---|
412 | </element>
|
---|
413 | </define>
|
---|
414 | <define name="entry.attlist" combine="interleave">
|
---|
415 | <optional>
|
---|
416 | <attribute name="colname"/>
|
---|
417 | </optional>
|
---|
418 | <optional>
|
---|
419 | <attribute name="namest"/>
|
---|
420 | </optional>
|
---|
421 | <optional>
|
---|
422 | <attribute name="nameend"/>
|
---|
423 | </optional>
|
---|
424 | <optional>
|
---|
425 | <attribute name="spanname"/>
|
---|
426 | </optional>
|
---|
427 | <optional>
|
---|
428 | <attribute name="morerows"/>
|
---|
429 | </optional>
|
---|
430 | <optional>
|
---|
431 | <attribute name="colsep">
|
---|
432 | <ref name="yesorno"/>
|
---|
433 | </attribute>
|
---|
434 | </optional>
|
---|
435 | <optional>
|
---|
436 | <attribute name="rowsep">
|
---|
437 | <ref name="yesorno"/>
|
---|
438 | </attribute>
|
---|
439 | </optional>
|
---|
440 | <optional>
|
---|
441 | <attribute name="align">
|
---|
442 | <choice>
|
---|
443 | <value>left</value>
|
---|
444 | <value>right</value>
|
---|
445 | <value>center</value>
|
---|
446 | <value>justify</value>
|
---|
447 | <value>char</value>
|
---|
448 | </choice>
|
---|
449 | </attribute>
|
---|
450 | </optional>
|
---|
451 | <optional>
|
---|
452 | <attribute name="char"/>
|
---|
453 | </optional>
|
---|
454 | <optional>
|
---|
455 | <attribute name="charoff"/>
|
---|
456 | </optional>
|
---|
457 | <optional>
|
---|
458 | <attribute name="rotate">
|
---|
459 | <ref name="yesorno"/>
|
---|
460 | </attribute>
|
---|
461 | </optional>
|
---|
462 | <optional>
|
---|
463 | <attribute name="valign">
|
---|
464 | <choice>
|
---|
465 | <value>top</value>
|
---|
466 | <value>middle</value>
|
---|
467 | <value>bottom</value>
|
---|
468 | </choice>
|
---|
469 | </attribute>
|
---|
470 | </optional>
|
---|
471 | <ref name="secur"/>
|
---|
472 | </define>
|
---|
473 | </grammar>
|
---|
474 | <!-- End of DocBook CALS Table Model V4.5 ................................. -->
|
---|
475 | <!-- ...................................................................... -->
|
---|