Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

15 Converting to DITA XML > 15.5 Nesting DITA block elements > 15.5.7 Specifying first-child status for nested elements


15.5.7 Specifying first-child status for nested elements

To specify parent elements in which the paragraph format mapped to a given block element must appear as the first child:

[DITAFirst]

; Frame para format = parents under which the current block element

;  (or one of its parents) must be the first child.

Numbered1 = ol li

Numbered = li

Bulleted = li

If the parent element you assign to a paragraph format has more than one possible parent, and the paragraph format in question needs to be first only for one of its possible grandparents, list both the grandparent and parent, separated by spaces. You can list as many ancestors as necessary to fully specify first-child status for the paragraph format. List the ancestors in hierarchical order. The list must match the ancestor list in [DITAParents]; see §15.5.2 Designating DITA ancestor elements.

Use these settings mainly for lists, to ensure that a paragraph format starts a new list item or a new list. For example, these settings specify the following for the list paragraph formats mapped to <p> in [DITAParaTags]:

A Numbered1 <p> element must be the first child of its parent <li> element, which <li> element must be the first child of its <ol> parent; this setting forces first-child status for the entire lineage of the elements listed, not just the last.

A Numbered <p> element or a Bulleted <p> element must be the first child of its parent <li> element.

If you use definition lists or parameter lists, you must specify first-child status for the paragraph format of the term. For example:

[DITAFirst]

DefTerm = dlentry

ParamTerm = plentry

To override the [DITAFirst] assignment for a given instance of a paragraph, place a DITAFirst marker in the paragraph. Make the content of the marker the name(s) of the desired ancestor element(s), in hierarchical order. A DITAFirst marker specifies that the current block element must be the first child of its listed ancestor elements, overriding whatever is specified in [DITAFirst].



15 Converting to DITA XML > 15.5 Nesting DITA block elements > 15.5.7 Specifying first-child status for nested elements