Atomik Xport SE: Reference > Chapter 12 Extracting Tables > 12.1 The table element declaration << >>

12.1.4 The content model of table cells

The table cell element is represented in the Atomik table model by TableData, in CALS by data and in XHTML by th and td (for header an 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.

The following example uses the XHTML table format. 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)*> 
<!ATTLIST td
align CDATA #IMPLIED
parastyle CDATA #IMPLIED
charstyle CDATA #IMPLIED
cellstyle CDATA #IMPLIED
>

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

<!ELEMENT TableData (Paragraph | Image)*>