Table
Matches the <table> tag and outputs this as <Table>.
Attribute | Description from HTML to XML | Description from XML to HTML |
style | Node without class attribute is matched to TableStyle="[Basic Table]" anyClassValue" is matched to TableStyle="anyClassValue" | TableStyle="[Basic Table]" is matched to node without class attribute. |
default style | Node without class attribute is matched to TableStyle="" anyClassValue" is matched to TableStyle="anyClassValue". | TableStyle="anyStyleValue" is matched to class="anyStyleValue". |
repeat footer | Default values attribute, sets RepeatFooter="EveryTextColumn". Possible values OncePerPage, OncePerFrame, EveryTextColumn | |
repeat header | Default values attribute, sets RepeatHeader="EveryTextColumn" Possible values OncePerPage, OncePerFrame, EveryTextColumn |
From HTML to XML – all matching attributes are default match attributes, so the first is applied for the node and all <table> tags are changed to <Table TableStyle="[Basic Table]"...>
From XML to HTML – the first style attribute is an exact match attribute and the "default style" attribute is a default match attribute. If the TableStyle value is anything other than [Basic Table], the "default style" attribute is used.
The rest of the Table attributes are automatically filled in when the table is parsed. The TableParser is used to parse the full HTML table, including the tr, th, and td nodes to collect the size, count, and span information and apply it to the appropriate nodes.
Other table attributes:
ColCount – max number of columns in a row.
RowCount – number of rows.
HeaderRows – number of header rows. If, in HTML, the table has a thead node, the header rows are the number of rows in the thead node.
FooterRows – number of footer rows. If, in HTML, the table has a tfoot node, the footer rows would be the number of rows in the tfoot node. Otherwise the figure is 0.