Syntax #
s.simpletable.head.entry
Purpose #
The s.simpletable.head.entry annotation is used to tag a span as being the cell contents of a header row in 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).
This annotation can be applied to any content that can be presented in a table cell.
Examples #
The following is an example of a time where you might want to use the s.simpletable.head.entry 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 s.simpletable.head.entry:
Note: this rule applies three annotations. In this example, Migrate will apply the s.simpletable.head.entry annotation only to a span which has the SimpleHeadChar style.
See s.simpletable.head.entry and delete-data-content 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>