Atomik Xport SE: Reference > Chapter 12 Extracting Tables << >>

12.2 Automatically extracting tables

The next step is to understand the relationship of the Table element declaration to the parts of a table as they exist on the QuarkXPress page. You will see two diagrams below that illustrate this based on a table of stock prices. The two illustrations represent the top and bottom portions of the total page shown at the start if the start of the chapter.

Rules for tables are created in exactly the same way as for other elements in your DTD. These rules can be setup through direct association of style sheets to Table elements or through direct drag and drop of representative styling from the QuarkXPress page (see Chapter 5 - Working With Rulesets for further details).

When making rules you should map the appropriate style sheets for each row to the appropriate row element in the Atomik Xport DTD, (i.e. ‘TableDataRow’, ‘TableHeadRow’), or to the appropriate section element in the CALS DTD (i.e. thead, tbody).

Table and elements and how they relate to the Table element declaration.

Typesetting requirements for extracting tables

To successfully extract a tabbed table, it has to be in a single text box. A table that is spread across multiple boxes will not be extracted as a single XML table (although the table may be reconstructed from the individual tables after the extraction process is complete using custom XSLT).

Please also be aware that a Table element cannot be used as the root element in your DTD.

In order to extract the correct table geometry for tabbed tables it is recommended you ensure that tab stop positions are similar in every paragraph of your tabbed data.