Under maintenance

Heretto Help

Related Links Element (related-links)

The related-links element creates a special section for organizing and managing links to related topics and external resources. It appears after the topic body and provides structured navigation to supplementary information.

The related-links element serves these primary purposes:

  • Providing structured navigation to related topics and external resources

  • Supporting topic-to-topic relationships without embedded references in topic content

Key characteristics of the related-links element:

  • Appears as a special section following the topic body

  • Contains links that represent topic-to-topic connections or connections to non-DITA resources

  • Supports attribute inheritance from parent containers to child link elements

  • In output, integrates with map-generated links to provide comprehensive navigation

A related-links element consists of these optional child elements:

Link (link)
An optional element that defines a relationship to another topic or external resource. Links can be placed directly within related-links for flexible processor-determined ordering, or organized within container elements for specific display control.
Link list (linklist)

An optional container element that defines an author-arranged group of links. Processors should preserve the order of links specified within a linklist element, making it ideal for sequential navigation or prioritized link presentation.

Link pool (linkpool)

An optional container element that defines a group of links with common characteristics, such as type, audience, or scope. Links within a linkpool may be reordered, combined with other links, or filtered during output processing based on their attributes.

Content within the related-links element generally follows these output formatting rules:

  • Links within linklist elements appear in the authored order and should be preserved during processing

  • Links outside of linklist containers may be sorted and displayed in different orders based on role, target, importance, or other qualifiers

  • Links are typically displayed together with links generated from map context, providing comprehensive navigation

  • Some output formats may ignore certain hierarchical link roles (ancestor, parent, child, descendant, next, previous, sibling) though this behavior is not required

Use related-links to:

  • Link to conceptually related topics that provide background or supporting information

  • Reference external resources, standards, or documentation that supplements the current topic

  • Create navigation pathways for sequential reading or task completion

  • Establish semantic relationships between topics using role-based linking

  • Maintain links that should appear regardless of map context

Important considerations for DITA beginners and intermediate users:

  • Links in related-links differ from cross-references (xref) which appear inline within topic content

  • Use related-links instead of inline cross-references when you want to avoid disrupting the reading flow

  • Attributes set on linkpool and linklist elements cascade to their child link elements

  • Map-based linking through relationship tables often provides more efficient link management than embedded related-links

  • The related-links element supports the universal attribute group, link relationship attributes, role attributes, and outputclass

The related-links element added to a concept topic showing different organizational approaches.

<concept id="concept-9785" xml:lang="en-us">
    <title>Database Security Fundamentals</title>
    <shortdesc>Essential principles and practices for securing database systems.</shortdesc>
    <prolog>
        <author translate="no" type="creator">Security Team&lt;security@example.com&gt;</author>
    </prolog>
    <conbody>
        <p>Database security involves multiple layers of protection...</p>
    </conbody>
    <related-links>
        <!-- Organized link list with preserved order -->
        <linklist scope="external" format="html">
            <title>Industry Standards</title>
            <desc>Essential security standards and frameworks</desc>
            <link href="https://www.iso.org/standard/27001">
                <linktext>ISO 27001 Information Security Management</linktext>
            </link>
            <link href="https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-53r5.pdf">
                <linktext>NIST SP 800-53 Security Controls</linktext>
            </link>
        </linklist>
        
        <!-- Link pool for flexible processor organization -->
        <linkpool type="concept">
            <link href="encryption-concepts.dita" role="sibling">
                <linktext>Database Encryption Concepts</linktext>
            </link>
            <link href="access-control.dita" role="sibling">
                <linktext>Access Control Mechanisms</linktext>
            </link>
        </linkpool>
        
        <!-- Individual links for general reference -->
        <link href="security-audit-procedures.dita" type="task" role="next">
            <linktext>Database Security Audit Procedures</linktext>
        </link>
    </related-links>
</concept>