~ubuntu-branches/ubuntu/precise/docbook/precise

« back to all changes in this revision

Viewing changes to docbk30/cals-tbl.dtd

  • Committer: Bazaar Package Importer
  • Author(s): Adam Di Carlo
  • Date: 2002-03-31 01:40:26 UTC
  • Revision ID: james.westby@ubuntu.com-20020331014026-2ifu7guy17p9r3fi
Tags: upstream-4.1.99really4.2.cr1
ImportĀ upstreamĀ versionĀ 4.1.99really4.2.cr1

Show diffs side-by-side

added added

removed removed

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