Commit | Line | Data |
---|---|---|
8cd39fb3 MH |
1 | # Basic Tables Module |
2 | ||
3 | table = element table { table.attlist, caption?, tr+ } | |
4 | table.attlist = | |
5 | Common.attrib, | |
6 | attribute summary { Text.datatype }? | |
7 | caption = element caption { caption.attlist, Inline.model } | |
8 | caption.attlist = Common.attrib | |
9 | tr = element tr { tr.attlist, (th | td)+ } | |
10 | tr.attlist = Common.attrib, CellHAlign.attrib, CellVAlign.attrib | |
11 | th = element th { th.attlist, Flow.model } | |
12 | th.attlist = Cell.attrib | |
13 | td = element td { td.attlist, Flow.model } | |
14 | td.attlist = Cell.attrib | |
15 | Cell.attrib = | |
16 | Common.attrib, | |
17 | attribute abbr { Text.datatype }?, | |
18 | attribute axis { text }?, | |
19 | attribute headers { IDREFS.datatype }?, | |
20 | scope.attrib, | |
21 | attribute rowspan { Number.datatype }?, | |
22 | attribute colspan { Number.datatype }?, | |
23 | CellHAlign.attrib, | |
24 | CellVAlign.attrib | |
25 | CellHAlign.attrib = attribute align { "left" | "center" | "right" }? | |
26 | CellVAlign.attrib = attribute valign { "top" | "middle" | "bottom" }? | |
27 | scope.attrib = attribute scope { "row" | "col" }? | |
28 | Block.class |= table |