source: BOOK/schema/docbook/4.5/rng/calstblx.rng@ 97c391c

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 97c391c was da28cc3, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Validate the book against relax-ng instead of the
standard DTD.

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