Example: DITA map with a simple relationship table
This section is non-normative.
This example illustrates how to interpret a basic three-column relationship table used to maintain links between concept, task, and reference material.
The following example contains the markup for a simple relationship table:
<map>
<!-- ... -->
<reltable>
<relheader>
<relcolspec type="concept"/>
<relcolspec type="task"/>
<relcolspec type="reference"/>
</relheader>
<relrow>
<relcell>
<topicref href="A.dita"/>
</relcell>
<relcell>
<topicref href="B.dita"/>
</relcell>
<relcell>
<topicref href="C1.dita"/>
<topicref href="C2.dita"/>
</relcell>
</relrow>
</reltable>
</map>
A DITA-aware editing tool might represent the relationship table graphically:
| type="concept" | type="task" | type="reference" |
|---|---|---|
| A | B |
C1 |
When the content is rendered, a processor that renders these relationships as links would generate the following links based on the sample markup:
- Topic A
- The topic has generated links to B, C1, and C2
- Topic B
- The topic has generated links to A, C1, and C2
- Topics C1 and C2
- Each topic links to A and B