Skriftlig InfoDITA publishingDITA variablesInserting the topic map into the publication

Inserting the topic map into the publication

Once a topic map has been used to define one or more variables, it must be added to the publication. This is done in the bookmap.

(This procedure is based on the Tridion Docs database repository and Oxygen XML editor. Other tools have similar functionality.)

On this page

Prerequisites

You have all the tools available, and the necessary rights to develop new content. You have created one or more topic maps that define variables.

Context

Each topic map with variable definitions is added to the bookmap using the <map> element. The <map> element must be inserted into the <frontmatter> element.

Tip

To identify the topic map I use to define variables, and make it easier to find, I refer to it as a "keymap". This is not a standard DITA designation. In your database system, I suggest that you establish "Keymap" as a map type in your metadata. Unique identification makes the topic map easier to find.

Procedure

  1. Check out the bookmap.
  2. Place the cursor inside the <frontmatter> element.
  3. Insert the <map> element, and set the href attribute to specify the correct GUID.

    <frontmatter>
    	...
    	<map href="Definitions"></map>
    </frontmatter>

Tip

Consider building a modular system with variable definitions. This allows reuse of definitions and values, and provides a high degree of consistency.

These pages only explain how variables are used in DITA publishing. If you want additional explanations about the principle of variables, see under Methodology and especially Using variables in the text.

Note

Tip: If you have created multiple topic maps using a modular approach, consider placing all these maps in one single topic map before you insert it into the bookmap. That makes it easier to maintain the definitions map when new modules are added or removed. The principle looks like this:

<map id="Definitions">
	<map href="Definition_Module1"></map>
	<map href="Definition_Module2"></map>
	<map href="Definition_Module3"></map>
</map>

All external links open in a new window. I take no responsibility for information on external websites, even if I have linked to them. Please report links that do not work.

The information on this page represents my personal opinions and my understanding of the topic being described. Feel free to link to the page, but do not copy large parts of the content without permission. I take no responsibility for any errors, misunderstandings or missing information. I also take no responsibility for any mistakes you may make or cause as a result of incorrect or missing information. You are welcome to contribute with comments, relevant experiences or additional information. See Editor and contact information.