Include section headings in toc.xml
Refer to the toc-template-main.xml for guidance on adding the section headings as in this rendered example
<nav-pointer>
<related-object document-id="chaper1" document-type="chapter">
<?xml_file chapter1.xml?>
<?version 3?>
</related-object>
</nav-pointer>
<!--
For chapters in the body, include entries for the main sections of the chapter
- @object-id contains the XML ID of the target section
- @object-type is the name of the target element
The sections can be identfied by the following XPath:
/book-part-wrapper/*/book-part-meta/abstract[title]
| /book-part-wrapper/*/front-matter/*[title | toc-title-group | book-part-meta/title-group]
| /book-part-wrapper/*/body/sec[not(@sec-type = 'link-group', 'figs-and-tables')]
| /book-part-wrapper/*/back/*[(title | toc-title-group | index-title-group) and not(@sec-type = 'link-group', 'figs-and-tables')]
| /book-part-wrapper/*/back/app-group[not(title)]/app[title]
| /book-part-wrapper/*/back/index-group[not(index-title-group)]/index[index-title-group]
| /book-part-wrapper/*/*/toc-group[not(toc-title-group)]/toc[toc-title-group]
-->
<toc-entry>
<label>I.1.1</label>
<title>Section</title>
<nav-pointer>
<related-object document-id="chaper1" document-type="chapter" object-id="ch1.s1" object-type="sec"/>
</nav-pointer>
</toc-entry>
Section heading are only included for components in the body section: as documented here: <book-part book-part-type="chapter"
and <book-part book-part-type="section"
.
These should always be included, irrespective of the TOC setting in the UI -- the setting chosen determines what gets rendered on Bookshelf (through the domain service integration).