3 # This builds on the basic tables module, unlike with the DTD
6 include "xhtml-btable.rnc" {
12 ((thead?, tfoot?, tbody
+) | tr
+)
14 th
= element th
{ th
.attlist, Flow
.model
}
15 td
= element td
{ td
.attlist, Flow
.model
}
18 "left" |
"center" |
"right" |
"justify" |
"char"
20 attribute char
{ Character
.datatype
}?,
21 attribute charoff
{ Length
.datatype
}?
23 attribute valign
{ "top" |
"middle" |
"bottom" |
"baseline" }?
25 attribute scope
{ "row" |
"col" |
"rowgroup" |
"colgroup" }?
28 attribute width
{ Length
.datatype
}?,
29 attribute border
{ Pixels
.datatype
}?,
32 attribute cellspacing
{ Length
.datatype
}?,
33 attribute cellpadding
{ Length
.datatype
}?
34 col
= element col
{ col
.attlist
}
37 attribute span
{ Number
.datatype
}?,
38 attribute width
{ MultiLength
.datatype
}?,
41 colgroup
= element colgroup
{ colgroup
.attlist, col*
}
44 attribute span
{ Number
.datatype
}?,
45 attribute width
{ MultiLength
.datatype
}?,
48 tbody
= element tbody
{ tbody
.attlist, tr
+ }
49 tbody
.attlist
= Common
.attrib, CellHAlign
.attrib, CellVAlign
.attrib
50 thead
= element thead
{ thead
.attlist, tr
+ }
51 thead
.attlist
= Common
.attrib, CellHAlign
.attrib, CellVAlign
.attrib
52 tfoot
= element tfoot
{ tfoot
.attlist, tr
+ }
53 tfoot
.attlist
= Common
.attrib, CellHAlign
.attrib, CellVAlign
.attrib
67 attribute rules
{ "none" |
"groups" |
"rows" |
"cols" |
"all" }?