|
0
|
1 <!--
|
|
|
2 DTD for table elements for Voyager.
|
|
|
3
|
|
|
4 Copyright (c) 1998 W3C (MIT, INRIA, Keio), All Rights Reserved.
|
|
|
5
|
|
|
6 Author: Dave Raggett <dsr@w3.org>
|
|
|
7
|
|
|
8 Table tags present rendering problems for small displays
|
|
|
9 and voice browsers. As a result, W3C hopes to provide an
|
|
|
10 alternative tag set that makes the data model for tabular
|
|
|
11 data explicit, thereby making it easier to provide renderings
|
|
|
12 appropriate to device capabilities, e.g. as expanding lists.
|
|
|
13 -->
|
|
|
14
|
|
|
15 <!--======================= Tables =======================================-->
|
|
|
16
|
|
|
17 <!-- Derived from IETF HTML table standard, see [RFC1942] -->
|
|
|
18
|
|
|
19 <!--
|
|
|
20 The BORDER attribute sets the thickness of the frame around the
|
|
|
21 table. The default units are screen pixels.
|
|
|
22
|
|
|
23 The FRAME attribute specifies which parts of the frame around
|
|
|
24 the table should be rendered. The values are not the same as
|
|
|
25 CALS to avoid a name clash with the VALIGN attribute.
|
|
|
26
|
|
|
27 The value "border" is included for backwards compatibility with
|
|
|
28 <TABLE BORDER> which yields frame=border and border=implied
|
|
|
29 For <TABLE BORDER=1> you get border=1 and frame=implied. In this
|
|
|
30 case, it is appropriate to treat this as frame=border for backwards
|
|
|
31 compatibility with deployed browsers.
|
|
|
32 -->
|
|
|
33 <!ENTITY % TFrame "(void|above|below|hsides|lhs|rhs|vsides|box|border)">
|
|
|
34
|
|
|
35 <!--
|
|
|
36 The RULES attribute defines which rules to draw between cells:
|
|
|
37
|
|
|
38 If RULES is absent then assume:
|
|
|
39 "none" if BORDER is absent or BORDER=0 otherwise "all"
|
|
|
40 -->
|
|
|
41
|
|
|
42 <!ENTITY % TRules "(none | groups | rows | cols | all)">
|
|
|
43
|
|
|
44 <!-- horizontal placement of table relative to document -->
|
|
|
45 <!ENTITY % TAlign "(left|center|right)">
|
|
|
46
|
|
|
47 <!-- horizontal alignment attributes for cell contents
|
|
|
48
|
|
|
49 char alignment char, e.g. char=':'
|
|
|
50 charoff offset for alignment char
|
|
|
51 -->
|
|
|
52 <!ENTITY % cellhalign
|
|
|
53 "align (left|center|right|justify|char) #IMPLIED
|
|
|
54 char %Character; #IMPLIED
|
|
|
55 charoff %Length; #IMPLIED"
|
|
|
56 >
|
|
|
57
|
|
|
58 <!-- vertical alignment attributes for cell contents -->
|
|
|
59 <!ENTITY % cellvalign
|
|
|
60 "valign (top|middle|bottom|baseline) #IMPLIED"
|
|
|
61 >
|
|
|
62
|
|
|
63 <!ELEMENT table
|
|
|
64 (caption?, (col*|colgroup*), ((thead?, tfoot?, tbody+)|(tr+)))>
|
|
|
65 <!ELEMENT caption %Inline;>
|
|
|
66 <!ELEMENT thead (tr)+>
|
|
|
67 <!ELEMENT tfoot (tr)+>
|
|
|
68 <!ELEMENT tbody (tr)+>
|
|
|
69 <!ELEMENT colgroup (col)*>
|
|
|
70 <!ELEMENT col EMPTY>
|
|
|
71 <!ELEMENT tr (th|td)+>
|
|
|
72 <!ELEMENT th %Flow;>
|
|
|
73 <!ELEMENT td %Flow;>
|
|
|
74
|
|
|
75 <!ATTLIST table
|
|
|
76 %attrs;
|
|
|
77 summary %Text; #IMPLIED
|
|
|
78 width %Length; #IMPLIED
|
|
|
79 border CDATA #IMPLIED
|
|
|
80 frame %TFrame; #IMPLIED
|
|
|
81 rules %TRules; #IMPLIED
|
|
|
82 cellspacing %Length; #IMPLIED
|
|
|
83 cellpadding %Length; #IMPLIED
|
|
|
84 >
|
|
|
85
|
|
|
86 <!ENTITY % CAlign "(top|bottom|left|right)">
|
|
|
87 <!ENTITY % caption.extra "">
|
|
|
88
|
|
|
89 <!ATTLIST caption
|
|
|
90 %attrs;
|
|
|
91 %caption.extra;
|
|
|
92 >
|
|
|
93
|
|
|
94 <!--
|
|
|
95 COLGROUP groups a set of COL elements. It allows you to group
|
|
|
96 several semantically related columns together.
|
|
|
97 -->
|
|
|
98 <!ATTLIST colgroup
|
|
|
99 %attrs;
|
|
|
100 span %Number; "1"
|
|
|
101 width %MultiLength; #IMPLIED
|
|
|
102 %cellhalign;
|
|
|
103 %cellvalign;
|
|
|
104 >
|
|
|
105
|
|
|
106 <!--
|
|
|
107 COL elements define the alignment properties for cells in
|
|
|
108 one or more columns.
|
|
|
109
|
|
|
110 The WIDTH attribute specifies the width of the columns, e.g.
|
|
|
111
|
|
|
112 width=64 width in screen pixels
|
|
|
113 width=0.5* relative width of 0.5
|
|
|
114
|
|
|
115 The SPAN attribute causes the attributes of one
|
|
|
116 COL element to apply to more than one column.
|
|
|
117 -->
|
|
|
118 <!ATTLIST col
|
|
|
119 %attrs;
|
|
|
120 span %Number; "1"
|
|
|
121 width %MultiLength; #IMPLIED
|
|
|
122 %cellhalign;
|
|
|
123 %cellvalign;
|
|
|
124 >
|
|
|
125
|
|
|
126 <!--
|
|
|
127 Use THEAD to duplicate headers when breaking table
|
|
|
128 across page boundaries, or for static headers when
|
|
|
129 TBODY sections are rendered in scrolling panel.
|
|
|
130
|
|
|
131 Use TFOOT to duplicate footers when breaking table
|
|
|
132 across page boundaries, or for static footers when
|
|
|
133 TBODY sections are rendered in scrolling panel.
|
|
|
134
|
|
|
135 Use multiple TBODY sections when rules are needed
|
|
|
136 between groups of table rows.
|
|
|
137 -->
|
|
|
138 <!ATTLIST thead
|
|
|
139 %attrs;
|
|
|
140 %cellhalign;
|
|
|
141 %cellvalign;
|
|
|
142 >
|
|
|
143
|
|
|
144 <!ATTLIST tfoot
|
|
|
145 %attrs;
|
|
|
146 %cellhalign;
|
|
|
147 %cellvalign;
|
|
|
148 >
|
|
|
149
|
|
|
150 <!ATTLIST tbody
|
|
|
151 %attrs;
|
|
|
152 %cellhalign;
|
|
|
153 %cellvalign;
|
|
|
154 >
|
|
|
155
|
|
|
156 <!ATTLIST tr
|
|
|
157 %attrs;
|
|
|
158 %cellhalign;
|
|
|
159 %cellvalign;
|
|
|
160 >
|
|
|
161
|
|
|
162
|
|
|
163 <!-- Scope is simpler than axes attribute for common tables -->
|
|
|
164 <!ENTITY % Scope "(row|col|rowgroup|colgroup)">
|
|
|
165
|
|
|
166 <!-- TH is for headers, TD for data, but for cells acting as both use TD -->
|
|
|
167
|
|
|
168 <!ATTLIST th
|
|
|
169 %attrs;
|
|
|
170 abbr %Text; #IMPLIED
|
|
|
171 axis CDATA #IMPLIED
|
|
|
172 headers IDREFS #IMPLIED
|
|
|
173 scope %Scope; #IMPLIED
|
|
|
174 rowspan %Number; "1"
|
|
|
175 colspan %Number; "1"
|
|
|
176 %cellhalign;
|
|
|
177 %cellvalign;
|
|
|
178 >
|
|
|
179
|
|
|
180 <!ATTLIST td
|
|
|
181 %attrs;
|
|
|
182 abbr %Text; #IMPLIED
|
|
|
183 axis CDATA #IMPLIED
|
|
|
184 headers IDREFS #IMPLIED
|
|
|
185 scope %Scope; #IMPLIED
|
|
|
186 rowspan %Number; "1"
|
|
|
187 colspan %Number; "1"
|
|
|
188 %cellhalign;
|
|
|
189 %cellvalign;
|
|
|
190 >
|
|
|
191
|