Atomik Xport SE: Reference > Chapter 11 Extracting Tables > 11.1 The Table element declaration << >>

11.1.4 The content model of table cells

The table cell element is represented in the Atomik table model by “TableData”, in CALS by “entry” and in XHTML by “th” and “td” (for header and body cells respectively).

Table cell elements can contain both text and other elements, such as formatting elements and hyperlinks. In other words, they can contain mixed content. An example of this, for the TableData declaration, is given below.

<!ELEMENT TableData (#PCDATA | B | I | sup | sub | a)*> 

Note: You could include all of the twelve formatting elements in your table cell definition if you wished.

In addition, when the content model of the table cell element includes text, you can declare the standard element attributes for it.

In the following example, the cell element has been expanded beyond standard XHTML to include attributes storing character, paragraph and cell styling:

<!ELEMENT td (#PCDATA | B | I | sup | sub | a)*> 
parastyle CDATA #IMPLIED
charstyle CDATA #IMPLIED
cellstyle CDATA #IMPLIED

Note: InDesign allows you to store and apply cell formatting using Cell Styles, which are extracted to the ‘cellstyle’ attribute. Cell Styles are a useful way of applying borders, indents and colour to parts of your table. For more information on Cell Styles, see the Adobe InDesign documentation.

The table cell element can also hold Paragraph and Image elements, as shown in the example below.

<!ELEMENT TableData (Paragraph | Image)*>