First topic as cover page

Post here questions and problems related to editing and publishing DITA content.
fjeneau
Posts: 13
Joined: Thu Sep 24, 2020 8:20 pm

First topic as cover page

Post by fjeneau »

In a DITA-OT PDF transformation, is there any out-of-the-box way to treat the first topic as the cover page. I know you couldn't do this in the past, but I was wondering if oXygen 24/DITA-OT 3.6.1 had added any kind of customization that would easily allow this. If not, would switching from a generic map to a bookmap help, or would I still need to customize the XSLT no matter what?
Radu
Posts: 9055
Joined: Fri Jul 09, 2004 5:18 pm

Re: First topic as cover page

Post by Radu »

Hi,

From what I remember with a Bookmap you can add a topic before the table of contents, something like this:

Code: Select all

<!DOCTYPE bookmap PUBLIC "-//OASIS//DTD DITA BookMap//EN" "bookmap.dtd">
<bookmap>
    <booktitle>
        <mainbooktitle></mainbooktitle>
    </booktitle>
    <frontmatter>
        <topicref href="firstTopic.dita"/>
        <booklists>
            <toc/>
        </booklists>
    </frontmatter>
</bookmap>
So you can place the <toc> lower after the topic reference.
With a regular DITA Map you cannot define your table of contents placement very precisely so you would probably need some xslt customization to achieve what you want.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply