View Categories

p.property.head

1 min read

Table of Contents

Syntax #

p.property.head

 

Purpose #

The p.property.head annotation is used to tag an element as being a header for a properties table. This annotation allows the grouping of span header property elements into a single <prophead> tag. The content does not need to be contained in a table in the source document.

Examples #

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

Note: the relevant paragraph has been marked in bold for this example. The paragraph is not bold in the source document.

The following is an example of a rule that will apply p.property.head:

 

 

The following is the DITA XML output for the previous rule:

 

<properties>

<prophead>

            <proptypehd>Property</proptypehd>

<propvaluehd>Value</propvaluehd>

<propdeschd>Description</propdeschd>

         </prophead>

<property>

<proptype>Input  </proptype>

<propvalue>None  </propvalue>

<propdesc>This function does not take user input.</propdesc>

</property>

<property>

<proptype>Output  </proptype>

<propvalue>None  </propvalue>

<propdesc>This function does not produce output.</propdesc>

</property>

<property>

<proptype>Arguments  </proptype>

<propvalue>Two  </propvalue>

<propdesc>This function takes two arguments: item and range.</propdesc>

</property>

</properties>