2.4 DITA processing
DITA processing is affected by a number of factors, including
attributes that indicate the set of vocabulary and constraint modules on which a DITA
document depends; navigation; linking; content reuse (using direct or indirect addressing);
conditional processing; branch filtering; chunking; and more. In addition, translation of
DITA content is expedited through the use of the
@xml:lang attributes, and the
DITA includes markup that processors can use to generate reader navigation to or across DITA topics. Such navigation behaviors include table of contents (TOCs) and indexes.
2.4.2 Content reference (conref)
The DITA conref attributes provide mechanisms for reusing content. DITA content references support reuse scenarios that are difficult or impossible to implement using other XML-based inclusion mechanisms like XInclude and entities. Additionally, DITA content references have rules that help ensure that the results of content inclusion remain valid after resolution
2.4.3 Conditional processing (profiling)
Conditional processing, also known as profiling, is the filtering or flagging of information based on processing-time criteria.
2.4.4 Branch filtering
The branch filtering mechanism enables map authors to set filtering conditions for specific branches of a map. This makes it possible for multiple conditional-processing profiles to be applied within a single publication.
Content can be chunked (divided or merged into new output documents) in different ways for the purposes of delivering content and navigation. For example, content best authored as a set of separate topics might need to be delivered as a single Web page. A map author can use the
@chunk attribute to split up multi-topic documents into component topics or to combine multiple topics into a single document as part of output processing.
2.4.6 Translation and localization
DITA has features that facilitate preparing content for translation and working with multilingual content, including the
@xml:lang attribute, the
@dir attribute, and the
In addition, the
<index-sort-as> elements provide support for sorting in languages in which the correct sorting of an element requires text that is different from the base content of the element.
2.4.7 Processing documents with different values of the domains attribute
When DITA elements are copied from one document to another, processors need to determine the validity of the copied elements. This copying might occur as the result of a content reference (conref) or key reference (keyref), or it might occur in the context of an author editing a DITA document.
Processors can be configured to sort elements. Typical processing includes sorting glossary entries, lists of parameters or reference entries in custom navigation structures, and tables based on the contents of cells in specific columns or rows.