View Categories

p.simpletable.head

1 min read

Table of Contents

Syntax #

p.simpletable.head

Purpose #

The p.simpletable.head annotation is used to tag an element as being the header 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.head annotation:

This content will be organized into a simple table format. The p.simpletable.head annotation will be used to mark the first row (Date | Significance | Region) as the header row.


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.head:

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

See p.simpletable.row for more information.

The following is an example of the DITA output you would get from this annotation.

 

<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>