Add subsection to pdf toc
Posted: Tue Aug 16, 2016 5:48 pm
Hello I have created a dita document containing subsextions:
How do I customize the default toc.xsl from the dita2pdf translation to include the section titles in the table of contents. I know that i can create individual nested topics to solve this but i prefer to be able to use sections. My ditamap contains 2 levels, so the sections should be included as a 3rd level toc item
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE topic PUBLIC "-//OASIS//DTD DITA Topic//EN" "topic.dtd">
<topic id="topic_i4f_4hy_sw">
<title>Navigation overview</title>
<prolog>
<metadata>
<keywords>
<indexterm>Navigation</indexterm>
<indexterm>Menu bar</indexterm>
<indexterm>Document view</indexterm>
</keywords>
</metadata>
</prolog>
<body>
<section><title>The menu bar</title><p>bla bla bla</p></section>
<section><title>The document view</title><p>bla bla bla</p></section>