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