Map Transform Conventions
The built-in modules transform DITA maps into a
nested list structure.
Maps are represented as <div>
constructed normally. The table of contents
represented by a map is represented by a root
<ul id="toc">
element. Each
visible topicref is represented by an <li
class="tocentry topicref [...]">
element.
The contents of the element are
- A sequence/number identifier based on the location in the map.
- The title of the topicref, derived from the
<navtitle>
of the topicref or the title of the referenced topic, per DITA rules. - If a topic is referenced, the label will be
wrapped in the appropriate
<a>
tag. By default, only the@href
attribute is included, though this can be customized by overriding the namedtopicref-toc-atts
template. - If a topic is not referenced, the label
will be wrapped in
<span class="topichead">
, and additional attributes can be set by implementing the namedtopicref-topichead-atts
template. - A nested
<ul class="toclevel">
element ocntaining child topicrefs, if any.
Only visible topicrefs will be processed. A visible topicref
- Does not have
processing-role="resource-only"
- Does not have
toc="no"
- Has a navtitle, or references a topic with a non-blank title.
All other <topicref>
elements are
ignored.