Merge pull request #4668 from adamscott/template-pool-to-scons_pool
[scons.git] / doc / xsd / htmltblx.xsd
blob9f82a02bb03348f1172efaf334b1264a224ef9bd
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ...................................................................... -->
3 <!-- SCons DocBook V4.5-Based extension V1.0 XML HTML Table Module ........ -->
4 <!-- File htmltblx.xsd .................................................... -->
5 <!-- Copyright (c) 2001-7,2010,2011,2012 The SCons Foundation
7 Permission is hereby granted, free of charge, to any person obtaining
8 a copy of this software and associated documentation files (the
9 "Software"), to deal in the Software without restriction, including
10 without limitation the rights to use, copy, modify, merge, publish,
11 distribute, sublicense, and/or sell copies of the Software, and to
12 permit persons to whom the Software is furnished to do so, subject to
13 the following conditions:
15 The above copyright notice and this permission notice shall be included
16 in all copies or substantial portions of the Software.
18 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY
19 KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
20 WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21 NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
22 LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
23 OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
24 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
26 This DTD extension is based on the DocBook XML HTML Table
27 Module V4.5 with:
29 Copyright 2003-2006 ArborText, Inc., Norman Walsh, Sun Microsystems,
30 Inc., and the Organization for the Advancement of Structured Information
31 Standards (OASIS).
33 $Id: htmltblx.mod 6340 2006-10-03 13:23:24Z nwalsh $
35 Please direct all questions, bug reports, or suggestions for
36 changes to the docbook@lists.oasis-open.org mailing list. For more
37 information, see http://www.oasis-open.org/docbook/.
38 For the modified SCons extension files
40 scons.xsd, dbpoolx.xsd,
42 you can write to its developer mailing list. Check out
43 http://www.scons.org/ and http://www.scons.org/lists.php.
45 -->
46 <!-- ...................................................................... -->
47 <!--
48 This module contains the definitions for elements that are
49 isomorphic to the HTML elements. One could argue we should
50 instead have based ourselves on the XHTML Table Module, but the
51 HTML one is more like what browsers are likely to accept today
52 and users are likely to use.
54 This module has been developed for use with the DocBook V4.5
55 "union table model" in which elements and attlists common to both
56 models are defined (as the union) in the CALS table module by
57 setting various parameter entities appropriately in this file.
59 In DTD driver files referring to this module, please use an entity
60 declaration that uses the public identifier shown below:
62 <!ENTITY % htmltbl PUBLIC
63 "-//OASIS//ELEMENTS DocBook XML HTML Tables V4.5//EN"
64 "htmltblx.mod">
65 %htmltbl;
67 See the documentation for detailed information on the parameter
68 entity and module scheme used in DocBook, customizing DocBook and
69 planning for interchange, and changes made since the last release
70 of DocBook.
71 -->
72 <!-- ======================= XHTML Tables ======================================= -->
73 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
74 <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
75 <xs:attributeGroup name="html.coreattrs">
76 <xs:attributeGroup ref="common.attrib"/>
77 <xs:attribute name="class"/>
78 <xs:attribute name="style"/>
79 <xs:attribute name="title"/>
80 </xs:attributeGroup>
81 <!-- Does not contain lang or dir because they are in %common.attribs -->
82 <xs:attributeGroup name="i18n">
83 <xs:attribute ref="xml:lang"/>
84 </xs:attributeGroup>
85 <xs:attributeGroup name="events">
86 <xs:attribute name="onclick"/>
87 <xs:attribute name="ondblclick"/>
88 <xs:attribute name="onmousedown"/>
89 <xs:attribute name="onmouseup"/>
90 <xs:attribute name="onmouseover"/>
91 <xs:attribute name="onmousemove"/>
92 <xs:attribute name="onmouseout"/>
93 <xs:attribute name="onkeypress"/>
94 <xs:attribute name="onkeydown"/>
95 <xs:attribute name="onkeyup"/>
96 </xs:attributeGroup>
97 <xs:attributeGroup name="attrs">
98 <xs:attributeGroup ref="html.coreattrs"/>
99 <xs:attributeGroup ref="i18n"/>
100 <xs:attributeGroup ref="events"/>
101 </xs:attributeGroup>
102 <xs:attributeGroup name="cellhalign">
103 <xs:attribute name="align">
104 <xs:simpleType>
105 <xs:restriction base="xs:token">
106 <xs:enumeration value="left"/>
107 <xs:enumeration value="center"/>
108 <xs:enumeration value="right"/>
109 <xs:enumeration value="justify"/>
110 <xs:enumeration value="char"/>
111 </xs:restriction>
112 </xs:simpleType>
113 </xs:attribute>
114 <xs:attribute name="char"/>
115 <xs:attribute name="charoff"/>
116 </xs:attributeGroup>
117 <xs:attributeGroup name="cellvalign">
118 <xs:attribute name="valign">
119 <xs:simpleType>
120 <xs:restriction base="xs:token">
121 <xs:enumeration value="top"/>
122 <xs:enumeration value="middle"/>
123 <xs:enumeration value="bottom"/>
124 <xs:enumeration value="baseline"/>
125 </xs:restriction>
126 </xs:simpleType>
127 </xs:attribute>
128 </xs:attributeGroup>
129 <!-- doc:A group of columns in an HTML table. -->
130 <xs:element name="colgroup">
131 <xs:complexType>
132 <xs:sequence>
133 <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
134 </xs:sequence>
135 <xs:attributeGroup ref="colgroup.attlist"/>
136 </xs:complexType>
137 </xs:element>
138 <!-- doc:Specifications for a column in an HTML table. -->
139 <xs:element name="col">
140 <xs:complexType>
141 <xs:attributeGroup ref="col.attlist"/>
142 </xs:complexType>
143 </xs:element>
144 <!-- doc:A row in an HTML table. -->
145 <xs:element name="tr">
146 <xs:complexType>
147 <xs:choice maxOccurs="unbounded">
148 <xs:element ref="th"/>
149 <xs:element ref="td"/>
150 </xs:choice>
151 <xs:attributeGroup ref="tr.attlist"/>
152 </xs:complexType>
153 </xs:element>
154 <!-- doc:A table header entry in an HTML table. -->
155 <xs:element name="th">
156 <xs:complexType mixed="true">
157 <xs:choice minOccurs="0" maxOccurs="unbounded">
158 <xs:group ref="para.char.mix"/>
159 <xs:group ref="tabentry.mix"/>
160 <xs:element ref="table"/>
161 <xs:element ref="informaltable"/>
162 </xs:choice>
163 <xs:attributeGroup ref="th.attlist"/>
164 </xs:complexType>
165 </xs:element>
166 <!-- doc:A table ntry in an HTML table. -->
167 <xs:element name="td">
168 <xs:complexType mixed="true">
169 <xs:choice minOccurs="0" maxOccurs="unbounded">
170 <xs:group ref="para.char.mix"/>
171 <xs:group ref="tabentry.mix"/>
172 <xs:element ref="table"/>
173 <xs:element ref="informaltable"/>
174 </xs:choice>
175 <xs:attributeGroup ref="td.attlist"/>
176 </xs:complexType>
177 </xs:element>
178 <xs:attributeGroup name="colgroup.attlist">
179 <xs:attributeGroup ref="attrs"/>
180 <xs:attribute name="span" default="1"/>
181 <xs:attribute name="width"/>
182 <xs:attributeGroup ref="cellhalign"/>
183 <xs:attributeGroup ref="cellvalign"/>
184 </xs:attributeGroup>
185 <xs:attributeGroup name="col.attlist">
186 <xs:attributeGroup ref="attrs"/>
187 <xs:attribute name="span" default="1"/>
188 <xs:attribute name="width"/>
189 <xs:attributeGroup ref="cellhalign"/>
190 <xs:attributeGroup ref="cellvalign"/>
191 </xs:attributeGroup>
192 <xs:attributeGroup name="tr.attlist">
193 <xs:attributeGroup ref="attrs"/>
194 <xs:attributeGroup ref="cellhalign"/>
195 <xs:attributeGroup ref="cellvalign"/>
196 <xs:attribute name="bgcolor"/>
197 </xs:attributeGroup>
198 <xs:attributeGroup name="th.attlist">
199 <xs:attributeGroup ref="attrs"/>
200 <xs:attribute name="abbr"/>
201 <xs:attribute name="axis"/>
202 <xs:attribute name="headers" type="xs:IDREFS"/>
203 <xs:attribute name="scope">
204 <xs:simpleType>
205 <xs:restriction base="xs:token">
206 <xs:enumeration value="row"/>
207 <xs:enumeration value="col"/>
208 <xs:enumeration value="rowgroup"/>
209 <xs:enumeration value="colgroup"/>
210 </xs:restriction>
211 </xs:simpleType>
212 </xs:attribute>
213 <xs:attribute name="rowspan" default="1"/>
214 <xs:attribute name="colspan" default="1"/>
215 <xs:attributeGroup ref="cellhalign"/>
216 <xs:attributeGroup ref="cellvalign"/>
217 <xs:attribute name="nowrap">
218 <xs:simpleType>
219 <xs:restriction base="xs:token">
220 <xs:enumeration value="nowrap"/>
221 </xs:restriction>
222 </xs:simpleType>
223 </xs:attribute>
224 <xs:attribute name="bgcolor"/>
225 <xs:attribute name="width"/>
226 <xs:attribute name="height"/>
227 </xs:attributeGroup>
228 <xs:attributeGroup name="td.attlist">
229 <xs:attributeGroup ref="attrs"/>
230 <xs:attribute name="abbr"/>
231 <xs:attribute name="axis"/>
232 <xs:attribute name="headers" type="xs:IDREFS"/>
233 <xs:attribute name="scope">
234 <xs:simpleType>
235 <xs:restriction base="xs:token">
236 <xs:enumeration value="row"/>
237 <xs:enumeration value="col"/>
238 <xs:enumeration value="rowgroup"/>
239 <xs:enumeration value="colgroup"/>
240 </xs:restriction>
241 </xs:simpleType>
242 </xs:attribute>
243 <xs:attribute name="rowspan" default="1"/>
244 <xs:attribute name="colspan" default="1"/>
245 <xs:attributeGroup ref="cellhalign"/>
246 <xs:attributeGroup ref="cellvalign"/>
247 <xs:attribute name="nowrap">
248 <xs:simpleType>
249 <xs:restriction base="xs:token">
250 <xs:enumeration value="nowrap"/>
251 </xs:restriction>
252 </xs:simpleType>
253 </xs:attribute>
254 <xs:attribute name="bgcolor"/>
255 <xs:attribute name="width"/>
256 <xs:attribute name="height"/>
257 </xs:attributeGroup>
258 <!-- ====================================================== -->
259 <!--
260 Set up to read in the CALS model configured to
261 merge with the XHTML table model
263 <!-- ====================================================== -->
264 <xs:attributeGroup name="tables.role.attrib">
265 <xs:attributeGroup ref="role.attrib"/>
266 </xs:attributeGroup>
267 <!-- Add label and role attributes to table and informaltable -->
268 <xs:attributeGroup name="bodyatt">
269 <xs:attribute name="floatstyle"/>
270 <xs:attribute name="rowheader">
271 <xs:simpleType>
272 <xs:restriction base="xs:token">
273 <xs:enumeration value="firstcol"/>
274 <xs:enumeration value="norowheader"/>
275 </xs:restriction>
276 </xs:simpleType>
277 </xs:attribute>
278 <xs:attributeGroup ref="label.attrib"/>
279 </xs:attributeGroup>
280 <!--
281 Add common attributes to Table, TGroup, TBody, THead, TFoot, Row,
282 EntryTbl, and Entry (and InformalTable element).
284 <xs:attributeGroup name="secur">
285 <xs:attributeGroup ref="common.attrib"/>
286 <xs:attribute name="class"/>
287 <xs:attribute name="style"/>
288 <xs:attribute name="title"/>
289 <xs:attributeGroup ref="i18n"/>
290 <xs:attributeGroup ref="events"/>
291 <xs:attributeGroup ref="tables.role.attrib"/>
292 </xs:attributeGroup>
293 <xs:attributeGroup name="common.table.attribs">
294 <xs:attributeGroup ref="bodyatt"/>
295 <xs:attributeGroup ref="secur"/>
296 </xs:attributeGroup>
297 <!-- Content model for Table (that also allows HTML tables) -->
298 <xs:complexType name="tbl.table.mdl">
299 <xs:choice>
300 <xs:sequence>
301 <xs:element minOccurs="0" ref="blockinfo"/>
302 <xs:group ref="formalobject.title.content"/>
303 <xs:element minOccurs="0" maxOccurs="unbounded" ref="ndxterm.class"/>
304 <xs:element minOccurs="0" maxOccurs="unbounded" ref="textobject"/>
305 <xs:choice>
306 <xs:element maxOccurs="unbounded" ref="graphic"/>
307 <xs:element maxOccurs="unbounded" ref="mediaobject"/>
308 <xs:element maxOccurs="unbounded" ref="tgroup"/>
309 </xs:choice>
310 </xs:sequence>
311 <xs:sequence>
312 <xs:element ref="caption"/>
313 <xs:choice>
314 <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
315 <xs:element minOccurs="0" maxOccurs="unbounded" ref="colgroup"/>
316 </xs:choice>
317 <xs:element minOccurs="0" ref="thead"/>
318 <xs:element minOccurs="0" ref="tfoot"/>
319 <xs:choice>
320 <xs:element maxOccurs="unbounded" ref="tbody"/>
321 <xs:element maxOccurs="unbounded" ref="tr"/>
322 </xs:choice>
323 </xs:sequence>
324 </xs:choice>
325 </xs:complexType>
326 <xs:group name="informal.tbl.table.mdl">
327 <xs:choice>
328 <xs:sequence>
329 <xs:element minOccurs="0" maxOccurs="unbounded" ref="textobject"/>
330 <xs:choice>
331 <xs:element maxOccurs="unbounded" ref="graphic"/>
332 <xs:element maxOccurs="unbounded" ref="mediaobject"/>
333 <xs:element maxOccurs="unbounded" ref="tgroup"/>
334 </xs:choice>
335 </xs:sequence>
336 <xs:sequence>
337 <xs:choice>
338 <xs:element minOccurs="0" maxOccurs="unbounded" ref="col"/>
339 <xs:element minOccurs="0" maxOccurs="unbounded" ref="colgroup"/>
340 </xs:choice>
341 <xs:element minOccurs="0" ref="thead"/>
342 <xs:element minOccurs="0" ref="tfoot"/>
343 <xs:choice>
344 <xs:element maxOccurs="unbounded" ref="tbody"/>
345 <xs:element maxOccurs="unbounded" ref="tr"/>
346 </xs:choice>
347 </xs:sequence>
348 </xs:choice>
349 </xs:group>
350 <!-- Attributes for Table (including HTML ones) -->
351 <!-- N.B. rules = (none | groups | rows | cols | all) but it can't be spec'd -->
352 <!-- that way because 'all' already occurs in a different enumeration in -->
353 <!-- CALS tables (frame). -->
354 <xs:attributeGroup name="tbl.table.att">
355 <xs:attribute name="tabstyle"/>
356 <xs:attribute name="tocentry" type="yesorno.attvals"/>
357 <xs:attribute name="shortentry" type="yesorno.attvals"/>
358 <xs:attribute name="orient">
359 <xs:simpleType>
360 <xs:restriction base="xs:token">
361 <xs:enumeration value="port"/>
362 <xs:enumeration value="land"/>
363 </xs:restriction>
364 </xs:simpleType>
365 </xs:attribute>
366 <xs:attribute name="pgwide" type="yesorno.attvals"/>
367 <xs:attribute name="summary"/>
368 <xs:attribute name="width"/>
369 <xs:attribute name="border"/>
370 <xs:attribute name="rules"/>
371 <xs:attribute name="cellspacing"/>
372 <xs:attribute name="cellpadding"/>
373 <xs:attribute name="align">
374 <xs:simpleType>
375 <xs:restriction base="xs:token">
376 <xs:enumeration value="left"/>
377 <xs:enumeration value="center"/>
378 <xs:enumeration value="right"/>
379 </xs:restriction>
380 </xs:simpleType>
381 </xs:attribute>
382 <xs:attribute name="bgcolor"/>
383 </xs:attributeGroup>
384 <xs:simpleType name="tbl.frame.attval">
385 <xs:restriction base="xs:token">
386 <xs:enumeration value="void"/>
387 <xs:enumeration value="above"/>
388 <xs:enumeration value="below"/>
389 <xs:enumeration value="hsides"/>
390 <xs:enumeration value="lhs"/>
391 <xs:enumeration value="rhs"/>
392 <xs:enumeration value="vsides"/>
393 <xs:enumeration value="box"/>
394 <xs:enumeration value="border"/>
395 <xs:enumeration value="top"/>
396 <xs:enumeration value="bottom"/>
397 <xs:enumeration value="topbot"/>
398 <xs:enumeration value="all"/>
399 <xs:enumeration value="sides"/>
400 <xs:enumeration value="none"/>
401 </xs:restriction>
402 </xs:simpleType>
403 <!-- Allow either objects or inlines; beware of REs between elements. -->
404 <xs:group name="tbl.entry.mdl">
405 <xs:choice>
406 <xs:group ref="para.char.mix"/>
407 <xs:group ref="tabentry.mix"/>
408 </xs:choice>
409 </xs:group>
410 <!--
411 thead, tfoot, and tbody are defined in both table models,
412 so we set up parameter entities to define union models for them
414 <xs:complexType name="tbl.hdft.mdl">
415 <xs:choice>
416 <xs:element maxOccurs="unbounded" ref="tr"/>
417 <xs:sequence>
418 <xs:element minOccurs="0" maxOccurs="unbounded" ref="colspec"/>
419 <xs:element maxOccurs="unbounded" ref="row"/>
420 </xs:sequence>
421 </xs:choice>
422 </xs:complexType>
423 <xs:complexType name="tbl.tbody.mdl">
424 <xs:choice>
425 <xs:element maxOccurs="unbounded" ref="tr"/>
426 <xs:element maxOccurs="unbounded" ref="row"/>
427 </xs:choice>
428 </xs:complexType>
429 </xs:schema>
430 <!-- End of SCons DocBook V4.5-Based extension V1.0 XML HTML Table Module . -->
431 <!-- ...................................................................... -->