Chapter 4. Map-Driven Processing
Using and extending the DITA for Publishers map-driven processing framework
- Numbering of topics and within-topic elements in terms of the topicref hierarchy in the map ("enumeration").
- Processing of topics in terms of semantics imposed by topicrefs (e.g., processing a generic topic as a "chapter" because it is referenced by a
- Distinguishing separate uses of the same topic within a map in order to do automatic chunking and link rewriting.
- Generating output files in a structure different from the source file organization structure.
- Generation of literal files for topic heads as though the topic heads were references to title-only topics.
- Generation of a back-of-the-book indexes, glossaries, and other publication-scope lists.
The map-driven processing is used by all the DITA for Publishers transformation types, including HTML2, HTML5, EPUB, and Kindle. It is intended to be a general facility that can be used with any output type.
- Data collection
- Output generation
<xsl:param>to any template:
<xsl:template ...> <xsl:param name="collected-data" as="element()" tunnel="yes"/> ... </xsl:>
You can extend the data collection processing using any of several defined extension points.