XML technologies / DITA / Conditional processing / Creating topics for filtering and flagging content
(Excerpt from “DITA – Der neue Standard für Technische Dokumentation” by Johannes Hentrich)
Conditional processing of topics and maps can filter or flag content.
You can use the following attributes both for filtering and for flagging content:
audience: this attribute specifies the target audience for the corresponding element’s content.platform: this attribute most clearly reflects DITA’s origins as an XML-based standard for software documentation. The attributeplatformlets you mark elements containing information about particular operating systems, hardware platforms and so on.importance:This attribute specifies the level of importance of an element’s content. For example, the importance attribute can indicate whether a step in a task topic is optional or required.product: this attribute marks the product or product version to which the corresponding element’s content belongs.rev: this attribute marks elements with particular revision states. Elements containing the attributerevcan be specially flagged during conditional processing. Information about the attributerevis provided in “Flagging content”.otherprops: this is a general-purpose attribute for cases where none of the existing attributes fits. The attributeotherpropsis often used when the predefined attributes do not fit and no attribute has been specialized from the attributeprops.status: this attribute defines the status of the current element.props: the attributepropsis a generic attribute used as a basis for specialization. “Domain attributes” describes how to specialize the attributeprops.
For filtering content, you can use these attributes on practically all DITA elements. For flagging content, however, they can be used only on DITA block elements.
Each filtering and flagging attribute can contain one or more values. Multiple values are separated by spaces.
<steps audience="user expert">...</steps>Filtering excludes content from topics or maps so that it does not appear in the output. If an attribute contains several values, all its values must be excluded during conditional processing for the element’s content not to be output.
By default, all content is output; filtering is the only way to exclude content from the output. When creating topics and maps, all content must therefore initially be included. These are also called master topics and master maps. Conditional processing then filters content out of the master topics and master maps according to the attribute values.
All flagged content appears in the output. It can receive special formatting or a graphic.
The FO plugin currently does not support processing flagged content in DITA XML files.
Copyright © 2008 XLcontent Verlag
You may print the online version for your private use.
Otherwise, this chapter from “DITA - Der neue Standard für Technische Dokumentation” is subject to the same conditions as the bound edition. The work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
XLcontent Verlag, Pflegerstraße 40, 81247 München
back to top