reltable

Because DITA defines the reltable element with the same structure as a simpletable element, it requires additional internal structure to be rendered properly as a table within FrameMaker. This adds the fm-reltablehead and fm-reltablebody elements. Also, in order to support the use of the topicmeta element as the child of a reltable, the fm-reltablemeta element is added. On file save, the fm-reltablemeta element is converted into a topicmeta, and on import a topicmeta that is the child of a reltable is converted into an fm-reltablemeta element.

In the EDD, general rule for reltable should be “(fm-reltablemeta)?, (fm-reltablehead)?, (fm-reltablebody)”. The fm-reltablehead elementis defined as a Table Heading element named and the fm-reltablebody element is defined as a Table Body element. The fm-reltablehead element specifies a general rule of “relheader” and the fm-reltablebody element specifies a general rule of “relrow+”. The fm-reltablemeta element is defined as a Table Title element and has the same general rule as the topicmeta element. It also has the same attribute definitions as the topicmeta element, but no other element definition properties are needed for fm-reltablemeta.

In addition to the EDD modifications, the following rules are needed for the reltable structure:

fm element "fm-reltablehead" unwrap; 
fm element "fm-reltablebody" unwrap; 
 
fm element "fm-reflabel" drop; 
 
element "fm-reltablemeta" 
{ 
  is fm table title element; 
} 
 
element "reltable" 
{ 
  is fm table element; 
} 
element "relheader" 
{ 
  is fm table row element; 
  fm property row type value is "Heading"; 
} 
element "relrow" 
{ 
  is fm table row element; 
  fm property row type value is "Body"; 
}

The initial rules (first two lines) discard the head and body wrappers on file save. The next line discards the fm-topicreflabel element. The remaining rules define fm-reltablemeta as a Table Title, the root table element (reltable), the row element that is a “Heading” row (relheader) and the row element that is a “Body” row (relrow).