add tinkerer
[docutils.git] / docs / ref / soextblx.dtd
blob56ba311badfaa3dc448a0fca3a33a6b273af5c33
1 <!--
2 ===========================================================================
3 OASIS XML Exchange Table Model Declaration Module
4 ===========================================================================
5 :Date: 1999-03-15
6 -->
8 <!-- This set of declarations defines the XML version of the Exchange
9 Table Model as of the date shown in the Formal Public Identifier
10 (FPI) for this entity.
12 This set of declarations may be referred to using a public external
13 entity declaration and reference as shown in the following three
14 lines:
16 <!ENTITY % calstblx
17 PUBLIC "-//OASIS//DTD XML Exchange Table Model 19990315//EN">
18 %calstblx;
20 If various parameter entities used within this set of declarations
21 are to be given non-default values, the appropriate declarations
22 should be given before calling in this package (i.e., before the
23 "%calstblx;" reference).
24 -->
26 <!-- The motivation for this XML version of the Exchange Table Model
27 is simply to create an XML version of the SGML Exchange Table
28 Model. By design, no effort has been made to "improve" the model.
30 This XML version incorporates the logical bare minimum changes
31 necessary to make the Exchange Table Model a valid XML DTD.
32 -->
34 <!-- The XML version of the Exchange Table Model differs from
35 the SGML version in the following ways:
37 The following parameter entities have been removed:
39 - tbl.table.excep, tbl.hdft.excep, tbl.row.excep, tbl.entry.excep
40 There are no exceptions in XML. The following normative statement
41 is made in lieu of exceptions: the exchange table model explicitly
42 forbids a table from occurring within another table. If the
43 content model of an entry includes a table element, then this
44 cannot be enforced by the DTD, but it is a deviation from the
45 exchange table model to include a table within a table.
47 - tbl.hdft.name, tbl.hdft.mdl, tbl.hdft.excep, tbl.hdft.att
48 The motivation for these elements was to change the table
49 header/footer elements. Since XML does not allow element declarations
50 to contain name groups, and the exchange table model does not
51 allow a table to contain footers, the continued presence of these
52 attributes seems unnecessary.
54 The following parameter entity has been added:
56 - tbl.thead.att
57 This entity parameterizes the attributes on thead. It replaces
58 the tbl.hdft.att parameter entity.
60 Other miscellaneous changes:
62 - Tag ommission indicators have been removed
63 - Comments have been removed from declarations
64 - NUMBER attributes have been changed to NMTOKEN
65 - NUTOKEN attributes have been to changed to NMTOKEN
66 - Removed the grouping characters around the content model
67 parameter entry for the 'entry' element. This is necessary
68 so that an entry can contain #PCDATA and be defined as an
69 optional, repeatable OR group beginning with #PCDATA.
70 -->
72 <!-- This entity includes a set of element and attribute declarations
73 that partially defines the Exchange table model. However, the model
74 is not well-defined without the accompanying natural language
75 description of the semantics (meanings) of these various elements,
76 attributes, and attribute values. The semantic writeup, also available
77 from SGML Open, should be used in conjunction with this entity.
78 -->
80 <!-- In order to use the Exchange table model, various parameter entity
81 declarations are required. A brief description is as follows:
83 ENTITY NAME WHERE USED WHAT IT IS
85 %yesorno In ATTLIST of: An attribute declared value
86 almost all elements for a "boolean" attribute
88 %paracon In content model of: The "text" (logical content)
89 <entry> of the model group for <entry>
91 %titles In content model of: The "title" part of the model
92 table element group for the table element
94 %tbl.table.name In declaration of: The name of the "table"
95 table element element
97 %tbl.table-titles.mdl In content model of: The model group for the title
98 table elements part of the content model for
99 table element
101 %tbl.table.mdl In content model of: The model group for the content
102 table elements model for table element,
103 often (and by default) defined
104 in terms of %tbl.table-titles.mdl
105 and tgroup
107 %tbl.table.att In ATTLIST of: Additional attributes on the
108 table element table element
110 %bodyatt In ATTLIST of: Additional attributes on the
111 table element table element (for backward
112 compatibility with the SGML
113 model)
115 %tbl.tgroup.mdl In content model of: The model group for the content
116 <tgroup> model for <tgroup>
118 %tbl.tgroup.att In ATTLIST of: Additional attributes on the
119 4 <tgroup> <tgroup> element
121 %tbl.thead.att In ATTLIST of: Additional attributes on the
122 <thead> <thead> element
124 %tbl.tbody.att In ATTLIST of: Additional attributes on the
125 <tbody> <tbody> element
127 %tbl.colspec.att In ATTLIST of: Additional attributes on the
128 <colspec> <colspec> element
130 %tbl.row.mdl In content model of: The model group for the content
131 <row> model for <row>
133 %tbl.row.att In ATTLIST of: Additional attributes on the
134 <row> <row> element
136 %tbl.entry.mdl In content model of: The model group for the content
137 <entry> model for <entry>
139 %tbl.entry.att In ATTLIST of: Additional attributes on the
140 <entry> <entry> element
142 This set of declarations will use the default definitions shown below
143 for any of these parameter entities that are not declared before this
144 set of declarations is referenced.
147 <!-- These definitions are not directly related to the table model, but are
148 used in the default CALS table model and may be defined elsewhere (and
149 prior to the inclusion of this table module) in the referencing DTD. -->
151 <!ENTITY % yesorno 'NMTOKEN'> <!-- no if zero(s), yes if any other value -->
152 <!ENTITY % titles 'title?'>
153 <!ENTITY % paracon '#PCDATA'> <!-- default for use in entry content -->
155 <!--
156 The parameter entities as defined below change and simplify the CALS table
157 model as published (as part of the Example DTD) in MIL-HDBK-28001. The
158 resulting simplified DTD has support from the SGML Open vendors and is
159 therefore more interoperable among different systems.
161 These following declarations provide the Exchange default definitions
162 for these entities. However, these entities can be redefined (by giving
163 the appropriate parameter entity declaration(s) prior to the reference
164 to this Table Model declaration set entity) to fit the needs of the
165 current application.
167 Note, however, that changes may have significant effect on the ability to
168 interchange table information. These changes may manifest themselves
169 in useability, presentation, and possible structure information degradation.
172 <!ENTITY % tbl.table.name "table">
173 <!ENTITY % tbl.table-titles.mdl "%titles;,">
174 <!ENTITY % tbl.table-main.mdl "tgroup+">
175 <!ENTITY % tbl.table.mdl "%tbl.table-titles.mdl; %tbl.table-main.mdl;">
176 <!ENTITY % tbl.table.att "
177 pgwide %yesorno; #IMPLIED ">
178 <!ENTITY % bodyatt "">
179 <!ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody">
180 <!ENTITY % tbl.tgroup.att "">
181 <!ENTITY % tbl.thead.att "">
182 <!ENTITY % tbl.tbody.att "">
183 <!ENTITY % tbl.colspec.att "">
184 <!ENTITY % tbl.row.mdl "entry+">
185 <!ENTITY % tbl.row.att "">
186 <!ENTITY % tbl.entry.mdl "(%paracon;)*">
187 <!ENTITY % tbl.entry.att "">
189 <!-- ===== Element and attribute declarations follow. ===== -->
191 <!--
192 Default declarations previously defined in this entity and
193 referenced below include:
194 ENTITY % tbl.table.name "table"
195 ENTITY % tbl.table-titles.mdl "%titles;,"
196 ENTITY % tbl.table.mdl "%tbl.table-titles; tgroup+"
197 ENTITY % tbl.table.att "
198 pgwide %yesorno; #IMPLIED "
201 <!ELEMENT %tbl.table.name; (%tbl.table.mdl;)>
203 <!ATTLIST %tbl.table.name;
204 frame (top|bottom|topbot|all|sides|none) #IMPLIED
205 colsep %yesorno; #IMPLIED
206 rowsep %yesorno; #IMPLIED
207 %tbl.table.att;
208 %bodyatt;
211 <!--
212 Default declarations previously defined in this entity and
213 referenced below include:
214 ENTITY % tbl.tgroup.mdl "colspec*,thead?,tbody"
215 ENTITY % tbl.tgroup.att ""
218 <!ELEMENT tgroup (%tbl.tgroup.mdl;) >
220 <!ATTLIST tgroup
221 cols NMTOKEN #REQUIRED
222 colsep %yesorno; #IMPLIED
223 rowsep %yesorno; #IMPLIED
224 align (left|right|center|justify|char) #IMPLIED
225 %tbl.tgroup.att;
228 <!--
229 Default declarations previously defined in this entity and
230 referenced below include:
231 ENTITY % tbl.colspec.att ""
234 <!ELEMENT colspec EMPTY >
236 <!ATTLIST colspec
237 colnum NMTOKEN #IMPLIED
238 colname NMTOKEN #IMPLIED
239 colwidth CDATA #IMPLIED
240 colsep %yesorno; #IMPLIED
241 rowsep %yesorno; #IMPLIED
242 align (left|right|center|justify|char) #IMPLIED
243 char CDATA #IMPLIED
244 charoff NMTOKEN #IMPLIED
245 %tbl.colspec.att;
248 <!--
249 Default declarations previously defined in this entity and
250 referenced below include:
251 ENTITY % tbl.thead.att ""
254 <!ELEMENT thead (row+)>
256 <!ATTLIST thead
257 valign (top|middle|bottom) #IMPLIED
258 %tbl.thead.att;
261 <!--
262 Default declarations previously defined in this entity and
263 referenced below include:
264 ENTITY % tbl.tbody.att ""
267 <!ELEMENT tbody (row+)>
269 <!ATTLIST tbody
270 valign (top|middle|bottom) #IMPLIED
271 %tbl.tbody.att;
274 <!--
275 Default declarations previously defined in this entity and
276 referenced below include:
277 ENTITY % tbl.row.mdl "entry+"
278 ENTITY % tbl.row.att ""
281 <!ELEMENT row (%tbl.row.mdl;)>
283 <!ATTLIST row
284 rowsep %yesorno; #IMPLIED
285 valign (top|middle|bottom) #IMPLIED
286 %tbl.row.att;
290 <!--
291 Default declarations previously defined in this entity and
292 referenced below include:
293 ENTITY % paracon "#PCDATA"
294 ENTITY % tbl.entry.mdl "(%paracon;)*"
295 ENTITY % tbl.entry.att ""
298 <!ELEMENT entry %tbl.entry.mdl;>
300 <!ATTLIST entry
301 colname NMTOKEN #IMPLIED
302 namest NMTOKEN #IMPLIED
303 nameend NMTOKEN #IMPLIED
304 morerows NMTOKEN #IMPLIED
305 colsep %yesorno; #IMPLIED
306 rowsep %yesorno; #IMPLIED
307 align (left|right|center|justify|char) #IMPLIED
308 char CDATA #IMPLIED
309 charoff NMTOKEN #IMPLIED
310 valign (top|middle|bottom) #IMPLIED
311 %tbl.entry.att;