1 |
<?xml version="1.0"?> |
2 |
|
3 |
<!-- |
4 |
An XML DTD for a semantic table model, trying to keep close |
5 |
to the CALS model. |
6 |
|
7 |
Currently features: |
8 |
- nested <row>s |
9 |
- no <tfoot> (useless) |
10 |
|
11 |
Will feature: |
12 |
- <rowlevelspec>s to hold rowlevel's optional title and to |
13 |
allow <row rowlevel="name"> |
14 |
- nested <column>s |
15 |
- anonymous (title-less rows and cols) |
16 |
- no <entry morerows="..."> (use anonymous rows instead) |
17 |
- no <thead> (too much layout oriented, use column titles instead) |
18 |
- no <spanspec> (too much layout oriented, use nested (and maybe anonymous) |
19 |
columns instead) |
20 |
- annotations on row/column titles |
21 |
|
22 |
|
23 |
Author: Yann Dirson <yann.dirson@fr.alcove.com> |
24 |
|
25 |
Copyright (c) 2001 Alcove - http://www.alcove.com/ |
26 |
Distribute under the terms of the GNU GPL |
27 |
--> |
28 |
|
29 |
<!ENTITY % colname.type "NMTOKEN"> |
30 |
<!ENTITY % valign.attrdef |
31 |
"valign (bottom|middle|top) #IMPLIED" > |
32 |
<!ENTITY % align.attrdef |
33 |
"align (left|right|center) #IMPLIED" > |
34 |
<!ENTITY % namest.attrdef |
35 |
"namest %colname.type; #IMPLIED" > |
36 |
<!ENTITY % nameend.attrdef |
37 |
"nameend %colname.type; #IMPLIED" > |
38 |
|
39 |
<!-- --> |
40 |
|
41 |
<!ELEMENT table (title,tgroup+) > |
42 |
<!ATTLIST table |
43 |
id ID #IMPLIED > |
44 |
|
45 |
<!ELEMENT tgroup (colspec*,thead?,tbody) > |
46 |
<!ATTLIST tgroup |
47 |
cols NMTOKEN #REQUIRED > |
48 |
|
49 |
<!ELEMENT colspec EMPTY > |
50 |
<!ATTLIST colspec |
51 |
colname %colname.type; #IMPLIED |
52 |
%align.attrdef; > |
53 |
|
54 |
<!ELEMENT tbody (row+) > |
55 |
<!ATTLIST tbody |
56 |
id ID #IMPLIED |
57 |
%valign.attrdef; > |
58 |
|
59 |
<!ELEMENT thead (row+) > |
60 |
<!ATTLIST thead |
61 |
%valign.attrdef; > |
62 |
|
63 |
<!ELEMENT row (rowheader,((entry|entrytbl)*,row*)) > |
64 |
|
65 |
<!ENTITY % rowheader.local "" > |
66 |
<!ELEMENT rowheader (title %rowheader.local) > |
67 |
|
68 |
<!ELEMENT entry ANY > |
69 |
<!ATTLIST entry |
70 |
%namest.attrdef; |
71 |
%nameend.attrdef; |
72 |
%align.attrdef; |
73 |
morerows NMTOKEN #IMPLIED > |
74 |
|
75 |
<!ELEMENT entrytbl ANY > |