Omni Systems, Inc.

  

Mif2Go User's Guide, Version 33u53

  

Valid HTML 4.01!

 

Made with Mif2Go

14 Producing DITA XML > 14.5 Nesting DITA block elements > 14.5.5 Specifying alternate ancestries for the same element


14.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 configuration file mif2htm.ini 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 section step

$text= body conbody taskbody refbody section example step refsyn entry

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



14 Producing DITA XML > 14.5 Nesting DITA block elements > 14.5.5 Specifying alternate ancestries for the same element