Example: How the @collection-type
and @linking
attributes
determine links
In this scenario, a simple map establishes basic hierarchical and relationship table
links. The @collection-type
and @linking
attributes are then
added to modify how links are generated.
The following example illustrates how linkage is defined in a DITA map:
When the output is generated, the topics contain the following linkage. Sequential
(next/previous) links between A1 and A2 are present because of the
@collection-type
attribute on the parent:
- A
- Links to A1, A2 as children
- A1
- Links to A as a parent
- A2
- Links to A as a parent
- B
- Links to A as related
The following example illustrates how setting the @linking
attribute can change
the default behavior:
When the output is generated, the topics contain the following linkage:
- A
- Links to A1, A2 as children
- A1
- Links to A as a parent
- A2
- Links to A as a parent
- B
- Links to A as a related topic