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.5 Specifying alternate ancestries for the same element


15.5.5 Specifying alternate ancestries for the same element

If your document uses the same paragraph format in several lineages, you can create a set of alternate ancestor elements for Mif2Go to choose from, depending on the context. The following predefined element sets are included in your project configuration file when you first set up a DITA project. You can alter or delete these sets, and you can define additional sets.

To define sets of elements to be considered as alternate ancestors:

[DITAElementSets]

; $setname = DITA elements in the set.

;  These element sets are predefined in the starting .ini for DITA:

$top = body conbody taskbody refbody section step

$text = body conbody taskbody refsyn section step entry stentry

$list= ol ul

Each set name must start with a dollar sign ($). You must define each set as a collection of elements; you may not define one element set in terms of other element sets.

You can use an element set name in place of an element name in [DITAParents], in [DITAFirst], or in the corresponding DITAParent and DITAFirst markers. For example:

[DITAParents]

Body = $text

Body2 = $top $list li

Any element in the set is acceptable at the point where it appears in the hierarchical sequence. There is no equivalent marker.

See also:

§15.5.6 Avoiding invalid ancestries



15 Converting to DITA XML > 15.5 Nesting DITA block elements > 15.5.5 Specifying alternate ancestries for the same element