Omni Systems, Inc.

  

Mif2Go User's Guide, Version 55

  

Valid HTML 4.01!

 

Made with Mif2Go

15 Converting to DITA XML > 15.4 Configuring DITA elements > 15.4.3 Mapping paragraph formats to DITA block elements > 15.4.3.7 Mapping paragraph format aliases to different elements


15.4.3.7 Mapping paragraph format aliases to different elements

Suppose your FrameMaker document includes a paragraph format named Body2, used in the following situations:

most often as a continuation of a Numbered1 or Numbered paragraph

less often as a continuation of a Bulleted paragraph

occasionally as a quotation, not part of any list.

This means that in different places in your document Body2 would have to be mapped to different elements, or participate in different DITA hierarchies.

To resolve this conflict, you would assign aliases to the alternate uses of Body2. You could keep the original format name for the most frequent use; however, the name Body2 does not convey anything about the differing semantics. Therefore you might want to use aliases for every use; for example, Body2OList, Body2UList, and Body2Quote.

To create an alias for the most prevalent use of Body2:

[DITAAliases]

Body2 = Body2OList

For the other two uses of Body2, you must insert a DITAAlias marker in each instance, with content one of the other aliases: Body2UList or Body2Quote. Then you could specify the following in configuration file m2dita.ini:

[DITAParaTags]

Body2?list = p

must = lq

Instead of using a DITAAlias marker, you can provide differential mappings of the same format by assigning Mif2Go macros to the aliases; see §28 Working with macros.



15 Converting to DITA XML > 15.4 Configuring DITA elements > 15.4.3 Mapping paragraph formats to DITA block elements > 15.4.3.7 Mapping paragraph format aliases to different elements