Configuring a Table Cell Span Provider
table element can have cells that span over
multiple columns and rows. As explained in Configuring Tables, you need to
indicate Oxygen XML Editor a method to determine the cell spanning. If you use the cell
element attributes rowspan and colspan or
rows and cols, Oxygen XML Editor can determine the
cell spanning automatically. In our example the td element uses the
attributes row_span and column_span that are not recognized
by default. You will need to implement a Java extension class for defining the cell
spanning.When no table cell span provider is specified, the table has the following layout:
Figure: Table layout when no cell span provider is specified
When the above implementation is configured, the table has the correct layout:
Figure: Cells spanning multiple rows and columns.
Note: The complete source code for the examples can be found in the Simple
Documentation Framework project, included in the oxygen-sample-framework module of the
Oxygen SDK , available as a Maven archetype on the Oxygen XML Editor website.