Technical Writing
  I  
November 4, 2016
  I  
xx min read

What is a DITA Map? A Simple Guide for Beginners

If you’ve ever felt the pain of updating the same paragraph across ten different user guides, you know the limits of traditional documentation. The endless cycle of copy-pasting, the version control headaches, and the fear of inconsistent information reaching your customers are real challenges. This is where structured content changes the game. Instead of duplicating content, you can create it once and reuse it everywhere. The key to this entire process is the DITA map. So, what is a DITA map? Think of it as the master organizer for your content, a powerful tool that links topics together without any duplication. This guide will break down how maps work and why they are the foundation for efficient, scalable technical documentation.

So, What Exactly is a DITA Map?

DITA maps link topics without any need to copy and paste content across documents. Think of DITA maps like a table of contents, and how you arrange topics in those maps creates the structure of the document you’re building. There are several different DITA map types including: 

  • Bookmaps
  • Learning Maps
  • Sitemaps
  • Maps

Once you have content structured in topic types, you can assemble and reuse those topics in DITA maps for use in multiple documents.

Unstructured documents can be re-written in DITA allowing for reuse in DITA maps and published to multiple formats.

Want to learn more about DITA topic types? Check out our What is DITA video explainer for more information.

The Anatomy of a DITA Map

To really get how DITA maps work, you need to understand their basic structure. Like DITA topics, maps are XML files with a few core elements that define how your content is organized and assembled. Let's break down the two most important components.

The <map> Root Element and .ditamap Extension

At its core, a DITA map is an XML document that organizes your topics into a structured collection. Every map file begins and ends with the <map> element, which acts as the main container for all the content references within it. You'll recognize these files by their standard .ditamap extension. Think of this file as the master blueprint for your final document, whether that's a user guide, a knowledge base, or an online help system. It doesn't contain the content itself; instead, it holds the instructions for how to assemble individual, reusable topics into a logical order. This separation is key to making DITA so powerful for managing content at scale.

The <topicref> Element: The Core Building Block

Inside the <map> element, the <topicref> is the most fundamental building block. Each <topicref> acts as a pointer, referencing a specific DITA topic file or even another DITA map. You can arrange and nest these <topicref> elements to build a hierarchy, much like creating an outline or a table of contents for a book. This structure isn't just for organization on the back end; it directly defines the navigation and flow of your published output. The order and depth of your <topicref> elements will become the chapter-and-section structure in a PDF or the navigation tree in a help portal, making it a powerful tool for creating the user's path through your information.

What Makes DITA Maps So Powerful?

Maps may be seen as the secret sauce that makes DITA such a powerful way of creating, organizing, and distributing documentation. The key function of maps is organizing content. Very often documentation related to a subject like a product or a policy takes different forms that often utilize the same information in somewhat different ways. An Installation Manual and a Troubleshooting App may both have overlays of the same content in different contexts. Multiple maps can link to and utilize the same piece of content from the database.

This avoids duplication of effort and concerns about version control for content found in multiple documents. It also enables global updates of content across multiple uses in different docs. When you update a content “chunk”, it is updated in any map where it is used.

To learn more about reusing the same piece of content, check out our How to Reuse Structured Content With DITA blog post.

Defining Keys for Easy Content Management

In DITA maps, you can assign a unique name, or "key," to a specific resource like a topic or an image. Think of it as a stable, permanent address for a piece of content. This structure ensures that the key is understood consistently across all your documentation, which makes managing your content much simpler. Instead of relying on fragile file paths that can break if a file is moved, you reference the key. This means you can update a link in one central place, and it automatically updates everywhere that key is used, preventing broken links and making large-scale content management far more efficient.

Building Connections with Relationship Tables

Relationship tables, or reltables, provide a structured way to define how topics relate to one another. You can create a simple table that outlines these connections—for example, showing that Topic A is a prerequisite for Topic B, or that Topic C provides conceptual background for Topic D. By organizing these relationships clearly, you enhance the overall coherence of your documentation. This allows you to automatically generate "Related Topics" sections or other navigational aids, creating a more intuitive and helpful experience for your readers without any manual effort from your writers.

Controlling the Final Output with Chunking

Chunking is a powerful feature that gives you direct control over how your content is presented in the final output. It allows you to combine multiple, separate topics into a single published page. For instance, you might have a series of short, related troubleshooting steps that are authored as individual topics for maximum reuse. With chunking, you can decide to publish them all together on one scrollable webpage, creating a better reading flow for the user. This capability is essential for tailoring the final document to different formats and ensuring the presentation of information is logical and user-friendly.

More Than Formatting: The True Role of a DITA Map

While maps determine the order in which the information is presented, they do not contain formatting. Formatting is applied when the map is published and that formatting is specific to the publishing media chosen. Because of this, the same map can be published to a wide variety of distribution media from PDF to mobile, without changing the map.

This helps with two important issues:

  • Authors and reviewers do not need to be involved with formatting, which saves enormous amounts of time.
  • Managing changes in information is extremely efficient. Change the content chunks requiring the changes and republish any maps containing that content. All instances are updated identically, eliminating errors and omissions.

A Blueprint for Content Planning

One of the most powerful aspects of a DITA map is its role in strategic planning. Before a single topic is written, a map serves as a blueprint for your entire document. It allows you to outline exactly what topics are needed for a specific audience and how they should be organized to create the most logical and helpful user journey. This proactive approach to creating structured content moves teams away from reactive writing and toward a more intentional process. By mapping out the structure first, you ensure comprehensive coverage, avoid redundant information, and build a solid foundation for a documentation set that truly meets user needs from the start.

An Authoring Framework for Writers

For writers, a DITA map provides a clear and structured framework to work within. Instead of facing a blank page, authors have a pre-defined outline that shows them exactly which topics to create and where existing, reusable topics can be slotted in. This framework simplifies the authoring process, making it easier to contribute to large and complex documentation projects. It guides the creation of new content while promoting the use of existing assets, which is fundamental to efficient content operations. By providing this structure, maps help teams manage content development more effectively, ensuring consistency and speeding up production timelines.

A Model for Final Deliverables

A DITA map does more than just organize topics for your internal team; it directly models the final output for the end-user. The hierarchical structure you create in the map—much like a table of contents—becomes the navigation and flow of the final published document. This direct relationship between the map and the deliverable gives you precise control over the information architecture. Whether you are publishing to a PDF, a website, or an in-app help system, the structure defined in the map is faithfully reproduced. This predictability eliminates guesswork and ensures a consistent, intuitive experience for your audience across all channels.

Managing Large Projects with Submaps

As documentation projects grow in scale and complexity, managing a single, massive map can become unwieldy. This is where submaps become essential. Large documentation sets can be broken down into smaller, more manageable submaps, which are then referenced from a main map. This modular approach allows different writers or teams to work on separate sections of the documentation concurrently without interference. It’s a practical strategy for maintaining content governance on large projects, making them easier to update, review, and manage over time while keeping everything organized and connected.

Ensuring Integrity with Validation

Before publishing, it’s critical to ensure that your documentation is complete and free of errors like broken links or missing topics. DITA maps play a key role in this quality assurance process. A robust Component Content Management System (CCMS) can validate a DITA map, automatically checking that every topic reference is valid and that the overall structure is sound. This validation step acts as a safety net, catching potential issues before they ever reach the customer. By ensuring the integrity of your content prior to publication, you protect the quality of the user experience and maintain the trustworthiness of your documentation.

When DITA Maps Finally Click

Understanding maps is the key to understanding the huge difference between unstructured environments like desktop software and centralized component content management systems. Authoring in topics and other DITA elements and then organizing their structure with maps means your information is usable as data rather than discrete files.This, in turn, opens up an entire set of new ways to manage, reuse, and distribute your information efficiently. It may take a little time get used to the basic concepts of DITA authoring and publishing but when you do, you’ll find yourself in a much more powerful place as an information creator and manager. Check out our help documentation to learn more about how to create a map in Heretto CCMS and how intuitive the process is.

* For the purposes of this basic explanation, chunks are content with specific functions in a DITA CCMS. The most common chunk is a Topic which can be a Concept (description), Task (ordered list), or a Reference (specification or other fixed content). Authors create each of these functional pieces and assemble them (with a map) to create a document.

Other Key DITA Map Elements and Types

While the <topicref> element is the primary building block for any DITA map, several other elements give you more refined control over your document’s structure, navigation, and metadata. Think of these as the specialized tools in your toolkit. They help you move beyond a simple list of topics to create a truly sophisticated and user-friendly information architecture. Using these elements correctly is key to organizing complex content hierarchies and ensuring your final output is both logical and easy for your audience to follow. They allow you to group related ideas, create navigational signposts, and embed valuable data directly into the map’s structure.

Elements for Structuring Navigation

A well-structured document guides the reader effortlessly. In DITA, you can create this clear navigational structure using specific elements that act like a blueprint for your table of contents. These elements help you organize topics into logical groups and hierarchies, much like chapters and sections in a book. This isn't just about creating a list; it's about building an intuitive path through your information. By using elements designed specifically for navigation, you can create headings that organize content or group related topics together without cluttering the final output, making the user experience much cleaner.

<topichead> for Navigation-Only Titles

Sometimes you need a heading in your table of contents that doesn't link to a specific topic. The <topichead> element is perfect for this. It creates a non-clickable title that serves as a container for a group of related topics. For example, you might have a section called "Installation" that contains several task topics: "Installing on Windows," "Installing on macOS," and "Installing on Linux." The "Installation" title itself doesn't need its own page; it's simply a label for the topics nested beneath it. This helps you build a clear hierarchy in your navigation without creating unnecessary placeholder pages.

<topicgroup> for Grouping Topics

The <topicgroup> element allows you to cluster a set of related topics without adding a visible heading to the navigation. It’s like an invisible folder for organizational purposes. This is particularly useful when you need to apply the same metadata or attributes to a collection of topics but don't want to introduce another level in the table of contents. For instance, you could group all topics relevant to a specific user role within a <topicgroup> to manage them as a single unit behind the scenes. This keeps your content organized for authoring and management while presenting a streamlined view to the reader.

Elements for Adding Metadata

Beyond just structuring topics, DITA maps are powerful tools for embedding metadata—or data about your data. This information is crucial for making your content discoverable, manageable, and adaptable. By adding metadata directly within the map, you can define properties like audience, product version, or keywords for entire sections of your documentation at once. This metadata is then used during the publishing process to filter content, drive search functionality, and support content personalization, making your documentation much more dynamic and useful.

The <topicmeta> Element

The <topicmeta> element is the primary container for holding metadata within a DITA map. You can apply it to the entire map or to individual topic references. Inside <topicmeta>, you can specify all sorts of information, such as author details, copyright information, and keywords for search engine optimization. This metadata is inherited by all nested elements, making it an efficient way to apply properties to large groups of topics. Effective use of <topicmeta> is fundamental to strong content governance, as it ensures consistency and makes your content easier to find and manage.

Specialized Map Types

While the standard DITA map is incredibly versatile for creating deliverables like user guides and help sites, DITA also offers specialized map types designed for specific, advanced purposes. These specialized maps extend the core functionality to handle more complex information modeling tasks. They aren't typically used for generating a final document but rather for defining the rules and relationships that govern your entire content ecosystem. Using them allows you to build sophisticated systems for classification and control, which is essential for maintaining consistency at scale.

Subject Scheme Maps

Subject scheme maps are a powerful tool for creating and managing controlled vocabularies, also known as taxonomies. Think of a subject scheme map as a central dictionary for your content. It allows you to define a definitive list of subjects, categories, and values that can be used to classify your topics. For example, you can define a set of approved values for an "audience" attribute, such as "Administrator," "Developer," and "End User." This ensures that authors across your organization use consistent terminology when tagging content, which dramatically improves search accuracy and the ability to deliver personalized content to different user groups.

Frequently Asked Questions

Is a DITA map just a fancy table of contents? That's a great starting point, but a map does much more. While it does define the structure that becomes your table of contents, its real job is to act as a blueprint for assembling independent, reusable topics. Unlike a static table of contents, a DITA map is an active file that pulls content from various sources to build a final document, manage relationships between topics, and even control how content is published.

So, the content isn't actually in the DITA map file? That's exactly right. The map file itself contains no prose or instructional content. It's purely a list of references that point to your individual topic files. This separation of structure from content is what makes DITA so powerful. It allows you to use a single, approved topic in dozens of different documents without ever copying and pasting it, which is the key to maintaining consistency at scale.

What's the real-world advantage of using maps for updates? The main advantage is efficiency and accuracy. Imagine a critical product specification changes. In a traditional workflow, you might have to hunt down that information in ten or twenty separate documents and update each one by hand. With DITA maps, you update the single source topic containing that specification. The next time any map that references that topic is published, the new information is automatically included, saving you time and eliminating the risk of shipping documents with outdated content.

How does one map create both a PDF and a website? A DITA map is completely independent of formatting. It only dictates the content and its order. The visual styling is applied during the publishing process. You can have one process that takes your map and applies styles suitable for a printable PDF, with page numbers and headers. You can have another process that takes the exact same map and transforms it into a responsive website with a navigation menu. The source content never changes, only the output format.

Can I use one map to create different documents for different users? Yes, this is a core function of DITA maps. You can use metadata to tag topics for specific audiences, product versions, or platforms. When you publish, you can apply filters to your map that tell the system to include or exclude content based on those tags. This allows you to generate a user guide for beginners and a technical reference for experts from the very same collection of topics, all managed within a single map.

Key Takeaways

  • Use DITA maps as a blueprint for your documents: Think of a map as an intelligent table of contents that organizes your documentation by referencing individual topics. This structure allows you to build multiple deliverables from a single set of source files without ever copying and pasting content.
  • Update content once and it changes everywhere: Because maps link to single-source topics, any edit you make to a topic is automatically reflected in every document that uses it. This process is key for maintaining consistency and saving your team from tedious, manual updates.
  • Publish to any format from a single source: Maps define the logical flow of your information, while formatting is applied separately during the publishing process. This powerful separation allows you to produce a PDF, a website, and an in-app help system all from the same map.

Related Articles

Create great content together

Write, review, translate, and publish all from one system. Heretto is the only ContentOps platform that allows multiple authors to work together at the same time.