DITA maps have unique attributes that are designed to control the way that relationships are interpreted for different output purposes. In addition, DITA maps share many metadata and linking attributes with DITA topics.
DITA maps often encode structures that are specific to a particular medium or output,
for example, Web pages or a PDF document. Attributes, such as
@deliveryTarget
and @toc
, are designed to help
processors interpret the DITA map for each kind of output. Many of these attributes
are not available in DITA topics; individual topics, once separated from the
high-level structures and dependencies associated with a particular kind of output,
should be entirely reusable regardless of the intended output format.
@collection-type
@collection-type
attribute specifies how the children of
a <topicref>
element relate to their parent and to
each other. This attribute, which is set on the parent element, typically is
used by processors to determine how to generate navigation links in the
rendered topics. For example, a @collection-type
value of
"sequence" indicates that children of the specifying
<topicref>
element represent an ordered sequence
of topics; processors might add numbers to the list of child topics or
generate next/previous links for online presentation. This attribute is
available in topics on the <linklist>
and
<linkpool>
elements, where it has the same
behavior. Where the @collection-type
attribute is available
on elements that cannot directly contain elements (such as
<reltable>
or <topicref>
),
the behavior of the attribute is reserved for future use. @linking
By default, the relationships between the topics that are referenced in a map are reciprocal:
This behavior can be modified by using the @linking
attribute, which enables an author or information architect to specify
how a topic should participate in a relationship. The following values
are valid:
Authors also can create links directly in a topic by using the
<xref>
or <link>
elements, but in most cases map-based linking is preferable, because
links in topics create dependencies between topics that can hinder
reuse.
Note that while the relationships between the topics that are referenced in a map are reciprocal, the relationships merely imply reciprocal links in generated output that includes links. The rendered navigation links are a function of the presentation style that is determined by the processor.
@toc
<topicref>
hierarchies are included in navigation
output; relationship tables are excluded. @navtitle
@navtitle
attribute is ignored; it serves only to help the DITA map author keep track
of the title of the topic. @navtitle
attribute is deprecated in favor of the
<navtitle>
element. When both a
<navtitle>
element and a
@navtitle
attribute are specified, the
<navtitle>
element should be used. @locktitle
If @locktitle
is set to "yes", the
<navtitle>
element or
@navtitle
attribute is used if it is present.
Otherwise, the <navtitle>
element or
@navtitle
attribute is ignored and the navigation
title is retrieved from the referenced file.
@navtitle
attribute is deprecated in favor of the
<navtitle>
element. When both a
<navtitle>
element and a
@navtitle
attribute are specified, the
<navtitle>
element should be used. @print
@search
@chunk
Specifying a value for the @chunk
attribute on a
<map>
element establishes chunking behavior
that applies to the entire map, unless overridden by
@chunk
attributes that are set on more specific
elements in the DITA map. For a detailed description of the
@chunk
attribute and its usage, see Chunking.
@copy-to
In most situations, specifies whether a duplicate version of the topic is
created when it is transformed. This duplicate version can be either
literal or virtual. The value of the @copy-to
attribute
specifies the uniform resource identifier (URI) by which the topic can
be referenced by a @conref
attribute,
<topicref>
element, or
<xref>
element. The duplication is a
convenience for output processors that use the URI of the topic to
generate the base address of the output. The @keys
and @keyref
attributes provide an alternative
mechanism; they enable references to topics in specific-use
contexts.
The @copy-to
attribute also can be used to specify the
name of a new chunk when topics are being chunked; it also can be used
to determine the name of the stub topic that is generated from a
<topicref>
element that contains a title but
does not specify a target. In both of those cases, no duplicate version
of the topic is generated.
For information on how the @copy-to
attribute can be used
with the @chunk
attribute, see Chunking.
@processing-role
<topicref>
element.<keydef>
element. If the @processing-role
attribute is not specified
locally, the value cascades from the closest element in the containment
hierarchy.
@cascade
@cascade
attribute and was the only defined behavior for DITA
1.2 and earlier.<topicref>
elements that specify a different value
for a specific metadata attribute. If the cascading value for an attribute is already
merged based on multiple ancestor elements, that merged value continues to cascade until
a new value is encountered (that is, setting cascade="nomerge"
does not
undo merging that took place on ancestors).For more information, see Example: How the cascade attribute functions.
@keys
@keyscope