Table of contents - Input XML fragmentEdit online
In the merged DITA map, the <opentopic:map> contains a hierarchy
of <topicref> elements, or other elements (such as
<chapter> or <part>) that are specializations
of <topicref>.
Each of the <topicref> elements include a metadata section
that includes the topic title.
<bookmap ...> <oxy:front-page> ... </oxy:front-page> <oxy:front-matter> ... </oxy:front-matter> <opentopic:map xmlns:opentopic="http://www.idiominc.com/opentopic"> <oxy:toc-title xmlns:oxy="http://www.oxygenxml.com/extensions/author" empty="true"/> <booktitle class="- topic/title bookmap/booktitle "> <booklibrary class="- topic/ph bookmap/booklibrary ">Retro Tools</booklibrary> <mainbooktitle class="- topic/ph bookmap/mainbooktitle ">Product tasks</mainbooktitle> <booktitlealt class="- topic/ph bookmap/booktitlealt ">Tasks and what they can do</booktitlealt> </booktitle> <chapter is-chapter="true" class="- map/topicref bookmap/chapter " href="#unique_5" type="topic"> <topicmeta class="- map/topicmeta " data-topic-id="installing"> <navtitle href="#unique_5" class="- topic/navtitle ">Installing</navtitle> ... </topicmeta> <topicref class="- map/topicref " href="#unique_6" type="task"> <topicmeta class="- map/topicmeta " data-topic-id="installstorage"> <navtitle href="#unique_6" class="- topic/navtitle ">Installing hard drives or other storage</navtitle> ... </topicmeta> ... </topicref> ... </chapter>
Note: The
<oxy:toc-title> element is used as a placeholder for the
name of the TOC. For instance, you can use the string "Contents", specified on a pseudo
element, in the CSS.