The <hasRelated> element identifies an associative relationship between the container subject and each of the contained subjects.
( (topicmeta) (optional) then (data or data-about or subjectdef or subjectHead or topicref or (anchorref or keydef or mapref or topicgroup or topichead or topicset or topicsetref) ) (any number) ) |
- map/topicref subjectScheme/hasRelated
This example specifies that myProgram runs on Linux and Windows.
<subjectScheme> <subjectdef keys="myProgram" navtitle="My Program"> <hasRelated keys="runsOn" navtitle="runs on"> <subjectdef keys="linux" navtitle="Linux"/> <subjectdef keys="mswin" navtitle="Microsoft Windows"/> </hasRelated> </subjectdef> </subjectScheme>
Specifies the title of the topic as it will appear in the navigation or tables of contents that are generated from the map. Beginning with DITA 1.2, the preferred way to specify the navigation title in a map is with the navtitle element, available inside the topicmeta element. |
||||
A pointer to the resource represented by the <topicref>. See 3.4.2.1 The href attribute for detailed information on supported values and processing implications. References to DITA content cannot be below the topic level: that is, you cannot reference individual elements inside a topic. References to content other than DITA topics should use the format attribute to identify the kind of resource being referenced. |
||||
Collection types describe how links relate to each other. The processing default is "unordered", although no default is specified in the DTD or Schema. Indicates that the order of the child topics is not significant. Indicates that the order of the child topics is significant; output processors will typically link between them in order. Indicates that one of the children should be selected. Represents a tight grouping in which each of the referenced topics not only relates to the current topic but also relate to each other. Usage of the collection-type attribute on <reltable> and <relcolspec> is currently undefined and reserved for future use. |
(unordered | sequence | choice | family | -dita-use-conref-target) |
|||
Introduces one or more global identifiers for a resource referenced from a map. See 3.4.2.2 The keys attribute for details on how to use the keys attribute. |
||||
Describes the processing role of the referenced topic. The processing default is "normal". Normal topic that is a readable part of the information. The topic is used as a resource for processing purposes, but is not a readable unit of information on its own. This topic should not be included in a rendered table of contents, and the topic should not be rendered on its own. |
||||
The scope attribute identifies the closeness of the relationship between the current document and the target resource. See 3.4.2.10 The scope attribute for more information on values. |
||||
The format attribute identifies the format of the resource being referenced. See 3.4.2.9 The format attribute for details on supported values. |
||||
Describes the target of a reference. See 3.4.2.8 The type attribute for detailed information on supported values and processing implications. |
||||
univ-atts attribute group (includes select-atts, id-atts, and localization-atts groups) |
A set of related attributes, described in 3.4.1.3 univ-atts attribute group |
|||
A set of related attributes, described in 3.4.1.2 global-atts attribute group |
||||
Class and outputclass are described in 3.4.1.9 Other common DITA attributes |