View Categories

p.simpletable.row

1 min read

Table of Contents

Syntax #

p.simpletable.row

 

Purpose #

The p.simpletable.row annotation is used to tag an element as being an entry row of a simple table. A simple table is any table of uniform size and shape with no additional formatting or captions applied. This annotation creates a table, so to be applied correctly, the content must not be contained within a table (see Example).

Examples #

The following is an example of a time where you might want to use the p.simpletable.row annotation:

This content will be organized into a simple table format.


This content is already in a table, and will not correctly apply annotations related to simple tables.

The following is an example of a rule that will apply p.simpletable.row:

Note: this rule applies two annotations. In this example, Migrate will apply the p.simpletable.row annotation only to a paragraph containing a span which has the TableTermChar style.

See p.simpletable.head for more information.

The following is the DITA XML output for the previous rule (relevant portion in bold):

 

<simpletable>

<sthead>

<stentry>Date</stentry>

<stentry>Significance</stentry>

<stentry>Region</stentry>

</sthead>

 <strow>

<stentry>Jun 21</stentry>

<stentry>Summer Solstice</stentry>

<stentry>Global</stentry>

</strow>

         <strow>

<stentry>Oct 31</stentry>

<stentry>Halloween</stentry>

<stentry>North America</stentry>

</strow>

</simpletable>