XML technologies / DITA / Processing information / Processing information in DITA

(Excerpt from “DITA - Der neue Standard für Technische Dokumentation” by Johannes Hentrich)

DITA is designed for automated content processing. DITA XML files are processed automatically by the DITA Open Toolkit.

Automated processing also enables efficient conditional processing of content. In DITA, conditional processing means:

For the DITA Open Toolkit to consider content during conditional processing, metadata in the form of attributes is assigned to the elements concerned. DITA provides eight attributes for this purpose: audience, platform, importance, product, rev, otherprops, status and props. More information about these attributes is provided in Conditional processing.

The attribute props can be specialized to obtain additional conditional processing attributes.

A file called ditaval defines which elements marked with metadata, that is, attributes, should be filtered or flagged.

Filtered content does not appear in the output. Since all content of topics and maps is output by default, regardless of its attributes, it is advisable first to create master topics or master maps containing all content. Content is then filtered out only during processing.

When marking elements with attributes, note, for example, that with

 <p audience="Experte">Das weiß nur der Profi ...</p> 

the content of the element <p> appears in the output by default. Filtering on the attribute audience and its value Experte excludes the content apparently intended for experts. Filtering determines what is removed from a document, rather than what goes into it. Bear this in mind when marking content with attributes.

Content can be marked not just with one attribute containing one value but with several attributes containing several values. Only when filtering covers all the attributes and values listed in an element is its content omitted from the output. Thus, with

<p audience="Experte Administrator" plattform="Windows Linux">Das weiß nur der Profi ...</p>

filtering must cover the attribute audience and its values Experte and Administrator and the attribute platform with its values Windows and Linux for the content of the element <p> not to appear in the output. With numerous attributes and values, determining what will ultimately appear in the output can become a real puzzle.

When content is flagged through attributes, it always appears in the output. In the file ditaval you can specify how it should be marked in the output, using a color or a graphic. Flagging is particularly suitable for marking content at specific revision states.

Combined with maps assembling topics for particular output formats, conditional processing can produce audience-specific documents for different media. Technically, this is not especially difficult. However, the effort required to manage content through metadata must also be considered, and it is often much greater than expected.

  

 

 

 

back to top