Table properties allow you to write rules that work with tables in your input.
Table properties allow a rule to check if a chunk of content happens to be in a table, and if so where in the table it is. Some properties will be set on the table itself. These properties are not inherited. Other properties will be set on the elements within the table. For example, the column-position property will be set on all elements contained in table cells.
property | inherited | description |
---|---|---|
table-title | no | The table title, if available. |
table-header | no | A multi-valued property containing all of the headers of the table. |
column-count | no | The number of columns in the table. |
row-position | yes | The row number. |
column-position | yes | The column number. |
in-table-body | yes | Set to true for content in the table body. |
in-table-header | yes | Set to true for content in the table header. |
column-header | yes | The column's header, if available. |
first column | second column |
---|---|
A | B |
C | D |
E | F |
For the example table above, the following would be true: