24.4.3.7 Mapping paragraph format aliases to different elements

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

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 PI marker in each instance, with content one of the other aliases: Body2UList or Body2Quote. Then you could specify the following in configuration file d2dita.ini:

[DITAParaTags]
Body2?list = p
must = lq

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

Previous Topic:  24.4.3.6 Providing aliases for paragraph formats

Next Topic:  24.4.3.8 Mapping paragraph format aliases algorithmically

Parent Topic:  24.4.3 Mapping paragraph formats to DITA block elements

Sibling Topics:

24.4.3.1 Assigning DITA elements to paragraph formats

24.4.3.2 Omitting element tags for selected paragraph formats

24.4.3.3 Specifying a default element for unmapped paragraph formats

24.4.3.4 Omitting invalid tags for default DITA block elements

24.4.3.5 Overriding element mapping for paragraph formats

24.4.3.6 Providing aliases for paragraph formats

24.4.3.8 Mapping paragraph format aliases algorithmically

24.4.3.9 Mapping several paragraphs formats to the same element

Table of ContentsIndex