Eliminate the TOC (map-based PDF)

Create a PDF with no TOC when publishing from a map (as opposed to a bookmap).

By default, the Open Toolkit always creates a Table of Contents when you publish a PDF from a map, so if you want to eliminate it, you need to do a little work.

  1. Find the following template in DITA-OT/plugins/org.dita.pdf2/xsl/fo/root-processing.xsl:
    <xsl:template match="*[contains(@class, ' map/map ')]" mode="generatePageSequences">
        <xsl:call-template name="createFrontMatter"/>
        <xsl:call-template name="createToc"/> <xsl:choose> <xsl:when test="$map-based-page-sequence-generation"> <fo:page-sequence master-reference="ditamap-body-sequence" ▶ xsl:use-attribute-sets="page-sequence.body"> <xsl:call-template name="startPageNumbering"/> ...