diff options
Diffstat (limited to 'etc/schema/xhtml-basic-table.rnc')
| -rw-r--r-- | etc/schema/xhtml-basic-table.rnc | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/etc/schema/xhtml-basic-table.rnc b/etc/schema/xhtml-basic-table.rnc new file mode 100644 index 00000000000..97e10a56743 --- /dev/null +++ b/etc/schema/xhtml-basic-table.rnc | |||
| @@ -0,0 +1,28 @@ | |||
| 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 | ||