<map> element describes the
relationships among a set of resources, such as DITA topics. Maps
consist of references to topics, maps, and other resources organized
into hierarchies, groups, and tables. Maps express these relationships
in a single common format that can be used for different outputs.
The containing element for a map is the
element. Within the map, use the
element to add and organize references to the topics, and the
<reltable> elements to provide non-hierarchical relationships.
You can use the
<map> element to set default attribute values
<topicref> elements in the map.
When rendering a map, processors might make use of these relationships, such as to create a Table of Contents (TOC), aggregate topics into a PDF document, or create links between topics in output.
<title> element can optionally be used
to provide a title for the map (the
<title> element is preferred over
@title attribute). In some scenarios the title is purely informational,
and is present as an aid to the author. In other scenarios it might be useful or even required. For example, if a map is converted to Eclipse
Help, the Eclipse system will require a title for the resulting table of contents. In the
<bookmap> specialization of
<title> element provides a title for the book represented by that
map. In a map referenced by another map, the
<title> might be
discarded as topics from the submap are aggregated into a larger publication.
See appendix for information about this element in OASIS document type shells.
In this example, there are six
<topicref> elements. They are nested and
have a hierarchical relationship. The file bats.dita is the parent
topic and the other topics are its children. The hierarchy could be used to generate a PDF,
a navigation pane in an information center, a summary of the topics, or related links
between the parent topic and its children.
<map id="mybats"> <title>Bats</title> <topicref href="bats.dita" type="topic"> <topicref href="batcaring.dita" type="task"></topicref> <topicref href="batfeeding.dita" type="task"></topicref> <topicref href="batsonar.dita" type="concept"></topicref> <topicref href="batguano.dita" type="reference"></topicref> <topicref href="bathistory.dita" type="reference"></topicref> </topicref> </map>
The following attributes are
available on this element: Universal attribute group (with a narrowed definition of
below), Attributes common to many map elements, Architectural attribute group, outputclass, and the attributes defined below. This element also uses
@format from Link relationship attribute group.
@anchorrefto be pulled into the location of the anchor point "a1" inside map1.ditamap when map1.ditamap is rendered for delivery.
<title>element, which is preferred over the
Return to main page.
|Copyright © OASIS Open 2015. All Rights Reserved.||03 September 2015|