Common DITA map attributes and metadataDITA maps have many of the same common attributes as DITA content, but also have some additional ones for controlling the way relationships are interpreted for different output purposes.
TOC: Architectural Specification 1.1
[edit] Linking attributesThe collection-type and linking attributes affect how related links are generated for topics described in the map.
[edit] collection-typeThe collection-type attribute indicates how a particular set of sibling topicrefs relate to each other. The collection-type attribute is set on the container element for the sibling topicrefs. The collection-type value can indicate whether to generate links among the siblings, and what kind of links to generate (for example, next and previous links for a sequence, or sibling links for a family). The collection-type attribute can also indicate how the parent topic should link to its children (for example, showing the child links as a numbered list when the collection-type is sequence).Where the collection-type attribute is available on elements that cannot directly contain topicrefs (such as reltable and relcolspec), the behavior of the attribute is reserved for future use. [edit] linkingBy default, relationships between topics in a map are reciprocal: children link to parents and vice versa; next and previous topics in a sequence link to each other; topics in a family link to their siblings; topics in table cells of the same row in a relationship table link to each other. This default behavior can be modified using the linking attribute, which lets a topic modify how it participates in a relationship:
You can also create links directly in a topic using the <xref> or <link> elements, but in many cases map-based linking is preferable, because links in topics create dependencies between topics that can hinder reuse. Figure 1. Simple linking example <topicref href="A.dita" collection-type="sequence">
<topicref href="A1.dita"/>
<topicref href="A2.dita"/>
</topicref>
<reltable>
<relrow>
<relcell>A.dita</relcell>
<relcell>B.dita</relcell>
</relrow>
</reltable>
links to A1, A2 as children links to B as related
links to A as a parent links to A2 as next in the sequence
links to A as a parent links to A1 as previous in the sequence
links to A as related Figure 2. Linking example with the linking attribute <topicref href="A.dita" collection-type="sequence">
<topicref href="B.dita" linking="none"/>
<topicref href="A1.dita"/>
<topicref href="A2.dita"/>
</topicref>
<reltable>
<relrow>
<relcell>A.dita</relcell>
<relcell linking="sourceonly">B.dita</relcell>
</relrow>
</reltable>
links to A1, A2 as children (no links to B as a child, no links to B as related)
links to A as a parent links to A2 as next in the sequence (no links to B as previous)
links to A as a parent links to A1 as previous in the sequence
links to A as related TOC: Architectural Specification 1.1
[edit] Navigation, media, and chunking attributesThere are standard attributes available for identifying output-media-specific content and for rechunking topics.
[edit] toc, navtitle, locktitleAuthors can exclude entries from navigation output (such as an online table of contents, or a Web site map) using the toc attribute. By default, hierarchies are included in navigation output, and tables are excluded. Authors can provide a shorter version of the title for use in the navigation using the navtitle attribute. By default the navtitle attribute is ignored, and used only to help the author keep track of the target topic's title. The locktitle attribute can be set to ensure that the navtitle takes effect and overrides any title values in the target topic, or defined elsewhere in the topic reference metadata.
[edit] print, searchYou can set attributes on a topic to indicate whether it should be included in printed output and search indexes. [edit] chunkWhen a set of topics is transformed using a map, multi-topic files can be broken into smaller files, and multiple individual topics can be combined into a single larger file, using the chunk attribute. There is no default value for the chunk attribute, but a default for an entire map may be established by setting the chunk attribute on the map element or a specialization. For a detailed description of the chunk attribute and its usage see Chunking. [edit] copy-toWhen a set of topics is transformed using a map, duplicate topic versions can be created using the copy-to attribute. The copied topic will have a new file name or location as provided in the copy-to attribute, and the map can override the default title and shortdesc for this particular copy by providing values for them in the map using the topicref's navtitle and shortdesc. For information on how the copyto attribute can be used with the chunk attribute see Chunking. [edit] Shared attributesDITA maps use the same metadata and reuse attributes that DITA topics use.
DITA maps also use many of the same attributes that are used with link or xref elements in DITA content:
When new attributes are specialized off of props or base as a domain, they may be incorporated into both map and topic structural types. TOC: Architectural Specification 1.1 |
