Overview
DITA uses URI references in attributes like @href
and @conref
to establish relationships between documents and elements. Fragment identifiers (the part after #
) are used to address specific elements within DITA documents.
Reference
-
Basic topic reference:
filename.dita#topicId
-
Element within topic:
filename.dita#topicId/elementId
-
Same-topic element:
#./elementId
-
Another topic in same file:
#topicId
-
Current topic:
#.
-
Map element:
filename.ditamap#elementId
(requiresformat="ditamap"
) -
With path:
directory/filename.dita#topicId/elementId
All fragment identifiers must reference elements with @id
attributes. The slash (/
) separator distinguishes the topic ID from the element ID within that topic.