DITA processing

This chapter describes the features in TopLeaf which can be used to simplify the processing of DITA (Darwin Information Typing Architecture) documents. To enable these features, add the following command to your $document mapping:

<dita-properties mode="enable"/>

The class attribute is used to identify the inheritance information for each element, so it must have the correct value. The recommended way to ensure this is to use the DITA Open Toolkit to pre-process the data. This will also apply standard processing such as conref resolution and filtering.

TopLeaf provides its own pre-processor that should be used after the Open Toolkit pre-processing. The changes applied are described in “DITA pre-processing”.

[Note] Note

It is not necessary to enable DITA mode to process DITA documents; the normal facilities provided by mappings can be used to achieve equivalent results if you prefer.