Mercurial > hg > xemacs-beta
comparison etc/sgml/ie3tables.dtd @ 32:e04119814345 r19-15b99
Import from CVS: tag r19-15b99
author | cvs |
---|---|
date | Mon, 13 Aug 2007 08:52:56 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
31:b9328a10c56c | 32:e04119814345 |
---|---|
1 <!-- Note: I originally excerpted this from the document entitled | |
2 "The HTML3 Table Model" by Dave Raggett, which I found at | |
3 http://www.w3.org/hypertext/WWW/TR/WD-tables. This file | |
4 identified itself as W3C Working Draft, dated 12/22/95. There are | |
5 slight modifications. | |
6 | |
7 Added width attribute to th and td elements. | |
8 | |
9 Version: 11/07/96 | |
10 | |
11 --> | |
12 | |
13 <!-- Content model entities imported from parent DTD: | |
14 | |
15 %body.content; allows table cells to contain headers, paras, | |
16 lists, form elements and even arbitrarily nested tables. | |
17 | |
18 %text; is text characters, including character entities and | |
19 character emphasis elements, IMG and anchors | |
20 --> | |
21 | |
22 <!ENTITY % attrs | |
23 "id ID #IMPLIED -- element identifier -- | |
24 class NAMES #IMPLIED -- for subclassing elements -- | |
25 style CDATA #IMPLIED -- rendering annotation -- | |
26 lang NAME #IMPLIED -- as per RFC 1766 -- | |
27 -- dir (ltr|rtl) #IMPLIED -- -- I18N text direction --"> | |
28 | |
29 <!-- | |
30 The BORDER attribute sets the thickness of the frame around the | |
31 table. The default units are screen pixels. | |
32 | |
33 The FRAME attribute specifies which parts of the frame around | |
34 the table should be rendered. The values are not the same as | |
35 CALS to avoid a name clash with the VALIGN attribute. | |
36 | |
37 The value "border" is included for backwards compatibility with | |
38 <TABLE BORDER> which yields frame=border and border=implied | |
39 For <TABLE BORDER=1> you get border=1 and frame=implied. In this | |
40 case, its appropriate to treat this as frame=border for backwards | |
41 compatibility with deployed browsers. | |
42 --> | |
43 | |
44 <!ENTITY % Frame "(void|above|below|hsides|lhs|rhs|vsides|box|border)"> | |
45 | |
46 <!-- | |
47 The RULES attribute defines which rules to draw between cells: | |
48 | |
49 If RULES is absent then assume: | |
50 "none" if BORDER is absent or BORDER=0 otherwise "all" | |
51 --> | |
52 | |
53 <!ENTITY % Rules "(none | groups | rows | cols | all)"> | |
54 | |
55 <!-- horizontal placement of table relative to window --> | |
56 <!ENTITY % Where "(left|center|right)"> | |
57 <!-- horizontal alignment attributes for cell contents --> | |
58 <!ENTITY % cell.halign | |
59 "align (left|center|right|justify|char) #IMPLIED | |
60 char CDATA #IMPLIED -- alignment char, e.g. char=':' -- | |
61 charoff CDATA #IMPLIED -- offset for alignment char --" | |
62 > | |
63 | |
64 <!-- vertical alignment attributes for cell contents --> | |
65 <!ENTITY % cell.valign | |
66 "valign (top|middle|bottom|baseline) #IMPLIED" | |
67 > | |
68 | |
69 <!ELEMENT table - - (caption?, colgroup*, thead?, tfoot?, tbody+)> | |
70 <!ELEMENT caption - - (%text;)+> | |
71 <!ELEMENT thead - O (tr+)> | |
72 <!ELEMENT tfoot - O (tr+)> | |
73 <!ELEMENT tbody O O (tr+)> | |
74 <!ELEMENT colgroup - O (col*)> | |
75 <!ELEMENT col - O EMPTY> | |
76 <!ELEMENT tr - O (th|td)+> | |
77 <!ELEMENT (th|td) - O %body.content> | |
78 | |
79 <!ATTLIST table -- table element -- | |
80 %attrs; -- id, lang, style, dir and class -- | |
81 align %Where; #IMPLIED -- table position relative to window -- | |
82 width CDATA #IMPLIED -- table width relative to window -- | |
83 cols NUMBER #IMPLIED -- used for immediate display mode -- | |
84 border CDATA #IMPLIED -- controls frame width around table -- | |
85 frame %Frame; #IMPLIED -- which parts of table frame to include -- | |
86 rules %Rules; #IMPLIED -- rulings between rows and cols -- | |
87 cellspacing CDATA #IMPLIED -- spacing between cells -- | |
88 cellpadding CDATA #IMPLIED -- spacing within cells -- | |
89 background %URL #IMPLIED -- background picture -- | |
90 bgcolor CDATA #IMPLIED -- table background color -- | |
91 bordercolor CDATA #IMPLIED -- table border color -- | |
92 bordercolorlight CDATA #IMPLIED -- 3D table border color -- | |
93 bordercolordark CDATA #IMPLIED -- 3D table border color -- | |
94 > | |
95 | |
96 <!-- ALIGN is used here for compatibility with deployed browsers --> | |
97 <!ENTITY % Caption "(top|bottom)"> | |
98 | |
99 <!ATTLIST caption -- table caption -- | |
100 %attrs; -- id, lang, style, dir and class -- | |
101 align %Caption; #IMPLIED -- relative to table -- | |
102 > | |
103 | |
104 <!-- | |
105 COLGROUP groups a set of COL elements. It allows you to group | |
106 several columns together. | |
107 --> | |
108 | |
109 <!ATTLIST colgroup | |
110 %attrs; -- id, lang, style, dir and class -- | |
111 span NUMBER 1 -- default number of columns in group -- | |
112 width CDATA #IMPLIED -- default width for enclosed COLs -- | |
113 %cell.halign; -- horizontal alignment in cells -- | |
114 %cell.valign; -- vertical alignment in cells -- | |
115 > | |
116 | |
117 <!-- | |
118 COL elements define the alignment properties for cells in a given | |
119 column or spanned columns. The WIDTH attribute specifies the | |
120 width of the columns, e.g. | |
121 | |
122 width=64 width in screen pixels | |
123 width=0.5* relative width of 0.5 | |
124 --> | |
125 | |
126 <!ATTLIST col -- column groups and properties -- | |
127 %attrs; -- id, lang, style, dir and class -- | |
128 span NUMBER 1 -- number of columns spanned by group -- | |
129 width CDATA #IMPLIED -- column width specification -- | |
130 %cell.halign; -- horizontal alignment in cells -- | |
131 %cell.valign; -- vertical alignment in cells -- | |
132 > | |
133 | |
134 <!-- | |
135 Use THEAD to duplicate headers when breaking table | |
136 across page boundaries, or for static headers when | |
137 body sections are rendered in scrolling panel. | |
138 | |
139 Use TFOOT to duplicate footers when breaking table | |
140 across page boundaries, or for static footers when | |
141 body sections are rendered in scrolling panel. | |
142 | |
143 Use multiple TBODY sections when rules are needed | |
144 between groups of table rows. | |
145 --> | |
146 <!ATTLIST (thead|tbody|tfoot) -- table section -- | |
147 %attrs; -- id, lang, style, dir and class -- | |
148 %cell.halign; -- horizontal alignment in cells -- | |
149 %cell.valign; -- vertical alignment in cells -- | |
150 > | |
151 | |
152 <!ATTLIST tr -- table row -- | |
153 %attrs; -- id, lang, style, dir and class -- | |
154 %cell.halign; -- horizontal alignment in cells -- | |
155 %cell.valign; -- vertical alignment in cells -- | |
156 bgcolor CDATA #IMPLIED -- table background color -- | |
157 bordercolor CDATA #IMPLIED -- table border color -- | |
158 bordercolorlight CDATA #IMPLIED -- 3D table border color -- | |
159 bordercolordark CDATA #IMPLIED -- 3D table border color -- | |
160 > | |
161 | |
162 <!ATTLIST (th|td) -- header or data cell -- | |
163 %attrs; -- id, lang, style, dir and class -- | |
164 axis CDATA #IMPLIED -- defaults to cell content -- | |
165 axes CDATA #IMPLIED -- list of axis names -- | |
166 nowrap (nowrap) #IMPLIED -- suppress word wrap -- | |
167 rowspan NUMBER 1 -- number of rows spanned by cell -- | |
168 colspan NUMBER 1 -- number of cols spanned by cell -- | |
169 %cell.halign; -- horizontal alignment in cells -- | |
170 %cell.valign; -- vertical alignment in cells -- | |
171 background CDATA #IMPLIED -- background graphic -- | |
172 bgcolor CDATA #IMPLIED -- background color for cell -- | |
173 bordercolor CDATA #IMPLIED -- cell border color -- | |
174 bordercolorlight CDATA #IMPLIED -- 3D cell border color -- | |
175 bordercolordark CDATA #IMPLIED -- 3D cell border color -- | |
176 height CDATA #IMPLIED | |
177 width CDATA #IMPLIED | |
178 > | |
179 |