1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
|
<!-- EXCHANGE TABLE MODEL DECLARATION MODULE -->
<!-- This set of declarations defines the Exchange Table Model as of the
date shown in the Formal Public Identifier (FPI) for this entity.
This set of declarations may be referred to using a public external
entity declaration and reference as shown in the following two lines:
<!ENTITY % calstbls PUBLIC "-//OASIS//DTD Exchange Table Model 19960430//EN">
%calstbls;
If various parameter entities used within this set of declarations
are to be given non-default values, the appropriate declarations
should be given before calling in this package (i.e., before the
"%calstbls;" reference).
NOTE: This set of declarations assumes a NAMELEN of 32 as is used in
the standard CALS defined SGML declaration.
-->
<!-- This entity includes a set of element and attribute declarations
that partially defines the Exchange table model. However, the model
is not well-defined without the accompanying natural language
description of the semantics (meanings) of these various elements,
attributes, and attribute values. The semantic writeup, also available
from OASIS, should be used in conjunction with this entity.
-->
<!-- In order to use the Exchange table model, various parameter entity
declarations are required. A brief description is as follows:
ENTITY NAME WHERE USED WHAT IT IS
%bodyatt In ATTLIST of: Additional (non-table related)
table element(s) attributes on the overall
(wrapper) table element(s)
%yesorno In ATTLIST of: An attribute declared value
almost all elements for a "boolean" attribute
%titles In content model of: The "title" part of the model
table element(s) group for the table element(s)
%paracon In content model of: The "text" (logical content)
<entry> of the model group for <entry>
%tbl.table.name In declaration of: The name(s) of the "table"
table element(s) element(s)
%tbl.table-titles.mdl In content model of: The model group for the title
table elements(s) part of the content model for
table element(s)
%tbl.table-main.mdl In content model of: The model group for the main part
table elements(s) (not including titles) of the
content model for table element(s)
%tbl.table.mdl In content model of: The model group for the content
table elements(s) model for table element(s),
often (and by default) defined
in terms of %tbl.table-titles.mdl
and %tbl.table-main.mdl
%tbl.table.excep In content model of: The exceptions for the content
table element(s) model for table element(s)
%tbl.table.att In ATTLIST of: Additional attributes on the
table element(s) table element(s)
%tbl.tgroup.mdl In content model of: The model group for the content
<tgroup> model for <tgroup>
%tbl.tgroup.att In ATTLIST of: Additional attributes on the
<tgroup> <tgroup> element
%tbl.tbody.att In ATTLIST of: Additional attributes on the
<tbody> <tbody> element
%tbl.colspec.att In ATTLIST of: Additional attributes on the
<colspec> <colspec> element
%tbl.hdft.name In declaration of: The name(s) of the table
head/foot element(s) head and foot element(s)
%tbl.hdft.mdl In content model of: The model group for the content
head/foot element(s) model for head/foot element(s)
%tbl.hdft.excep In content model of: The exceptions for the content
head/foot element(s) model for head/foot element(s)
%tbl.hdft.att In ATTLIST of: Additional attributes on the
head/foot element(s) head/foot element(s)
%tbl.row.mdl In content model of: The model group for the content
<row> model for <row>
%tbl.row.excep In content model of: The exceptions for the content
<row> model for <row>
%tbl.row.att In ATTLIST of: Additional attributes on the
<row> <row> element
%tbl.entry.mdl In content model of: The model group for the content
<entry> model for <entry>
%tbl.entry.excep In content model of: The exceptions for the content
<entry> model for <entry>
%tbl.entry.att In ATTLIST of: Additional attributes on the
<entry> <entry> element
This set of declarations will use the default definitions shown below
for any of these parameter entities that are not declared before this
set of declarations is referenced.
-->
<!-- These definitions are not directly related to the table model, but are
used in the default CALS table model and may be defined elsewhere (and
prior to the inclusion of this table module) in the referencing DTD. -->
<!ENTITY % bodyatt "">
<!ENTITY % yesorno 'NUMBER' -- no if zero(s),
yes if any other digits value -->
<!ENTITY % titles 'title?'>
<!ENTITY % paracon '#PCDATA' -- default for use in entry content -->
<!--
The parameter entities as defined below change and simplify the CALS table
model as published (as part of the Example DTD) in MIL-HDBK-28001. The
resulting simplified DTD has support from the OASIS vendors and is
therefore more interoperable among different systems.
These following declarations provide the Exchange default definitions
for these entities. However, these entities can be redefined (by giving
the appropriate parameter entity declaration(s) prior to the reference
to this Table Model declaration set entity) to fit the needs of the
current application.
Note, however, that changes may have significant effect on the ability to
interchange table information. These changes may manifest themselves
in useability, presentation, and possible structure information degradation.
-->
<!ENTITY % tbl.table.name "table">
<!ENTITY % tbl.table-titles.mdl "%titles;,">
<!ENTITY % tbl.table-main.mdl "tgroup+">
<!ENTITY % tbl.table.mdl "%tbl.table-titles.mdl; %tbl.table-main.mdl;">
<!ENTITY % tbl.table.excep "-(%tbl.table.name)">
<!ENTITY % tbl.table.att "
pgwide %yesorno; #IMPLIED ">
<!ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody">
<!ENTITY % tbl.tgroup.att "">
<!ENTITY % tbl.tbody.att "">
<!ENTITY % tbl.colspec.att "">
<!ENTITY % tbl.hdft.name "thead">
<!ENTITY % tbl.hdft.mdl "row+">
<!ENTITY % tbl.hdft.excep "">
<!ENTITY % tbl.hdft.att "">
<!ENTITY % tbl.row.mdl "entry+">
<!ENTITY % tbl.row.excep "">
<!ENTITY % tbl.row.att "">
<!ENTITY % tbl.entry.mdl "(%paracon;)*">
<!ENTITY % tbl.entry.excep "">
<!ENTITY % tbl.entry.att "">
<!-- ===== Element and attribute declarations follow. ===== -->
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.table.name "table"
ENTITY % tbl.table-titles.mdl "%titles;,"
ENTITY % tbl.table-main.mdl "tgroup+"
ENTITY % tbl.table.mdl "%tbl.table-titles; %tbl.table-main.mdl;"
ENTITY % tbl.table.excep "-(%tbl.table.name)"
ENTITY % tbl.table.att "
pgwide %yesorno; #IMPLIED "
-->
<!ELEMENT %tbl.table.name; - - (%tbl.table.mdl;) %tbl.table.excep; >
<!ATTLIST %tbl.table.name
frame (top|bottom|topbot|all|sides|none) #IMPLIED
colsep %yesorno; #IMPLIED
rowsep %yesorno; #IMPLIED
%tbl.table.att;
%bodyatt;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
ENTITY % tbl.tgroup.att ""
-->
<!ELEMENT tgroup - O (%tbl.tgroup.mdl;) >
<!ATTLIST tgroup
cols NUMBER #REQUIRED
colsep %yesorno; #IMPLIED
rowsep %yesorno; #IMPLIED
align (left|right|center|justify|char) #IMPLIED
%tbl.tgroup.att;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.colspec.att ""
-->
<!ELEMENT colspec - O EMPTY >
<!ATTLIST colspec
colnum NUMBER #IMPLIED
colname NMTOKEN #IMPLIED
colwidth CDATA #IMPLIED
colsep %yesorno; #IMPLIED
rowsep %yesorno; #IMPLIED
align (left|right|center|justify|char) #IMPLIED
char CDATA #IMPLIED
charoff NUTOKEN #IMPLIED
%tbl.colspec.att;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.hdft.name "thead"
ENTITY % tbl.hdft.mdl "row+"
ENTITY % tbl.hdft.excep ""
ENTITY % tbl.hdft.att ""
-->
<!ELEMENT %tbl.hdft.name; - O (%tbl.hdft.mdl;) %tbl.hdft.excep;>
<!ATTLIST %tbl.hdft.name;
valign (top|middle|bottom) #IMPLIED
%tbl.hdft.att;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.tbody.att ""
-->
<!ELEMENT tbody - O (row+)>
<!ATTLIST tbody
valign (top|middle|bottom) #IMPLIED
%tbl.tbody.att;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % tbl.row.mdl "entry+"
ENTITY % tbl.row.excep ""
ENTITY % tbl.row.att ""
-->
<!ELEMENT row - O (%tbl.row.mdl;) %tbl.row.excep;>
<!ATTLIST row
rowsep %yesorno; #IMPLIED
valign (top|middle|bottom) #IMPLIED
%tbl.row.att;
>
<!--
Default declarations previously defined in this entity and
referenced below include:
ENTITY % paracon "#PCDATA"
ENTITY % tbl.entry.mdl "(%paracon;)*"
ENTITY % tbl.entry.excep ""
ENTITY % tbl.entry.att ""
-->
<!ELEMENT entry - O (%tbl.entry.mdl;) %tbl.entry.excep; >
<!ATTLIST entry
colname NMTOKEN #IMPLIED
namest NMTOKEN #IMPLIED
nameend NMTOKEN #IMPLIED
morerows NUMBER #IMPLIED
colsep %yesorno; #IMPLIED
rowsep %yesorno; #IMPLIED
align (left|right|center|justify|char) #IMPLIED
char CDATA #IMPLIED
charoff NUTOKEN #IMPLIED
valign (top|middle|bottom) #IMPLIED
%tbl.entry.att;
>
|