anchor

The <anchor> element is used for runtime integration of navigation. It provides an integration point that another map can point to in order to insert its navigation into the current navigation tree. It is currently supported by Eclipse output only.

For build-time integration, you can use the conref attribute on an element inside the map (for example, a topicref) to pull in content from a matching element (for example, another topicref) in another map.

Contains

no content

Contained by

map, topicref, topichead, topicgroup

Inheritance

map/anchor

Attributes

Name Description Data Type Default Value Required?
id The id of the anchor, to distinguish it from other anchor points in the same map. ID #IMPLIED No
%global-atts; (xtrf, xtrc) A set of related attributes, described at %global-atts; parameter entity PE not applicable Not applicable
class A common attribute described in Other common DITA attributes

Example

In this example, an anchor is defined with an ID of "a1". This ID can be referenced by the anchorref attribute on another map's map element.
<map title="MyComponent tasks">
<topicref navtitle="Start here" href="" toc="yes"> Start here
<navref mapref="othermap2.ditamap"/>
<navref mapref="othermap3.ditamap"/>
<anchor id="a1"/>
</topicref>
</map>

OASIS DITA Language Specification v1.0 -- 09 May 2005
Copyright (c) OASIS Open 2005. All Rights Reserved.