Page 1 of 1
First topic as cover page
Posted: Thu Jan 27, 2022 8:38 pm
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?
Re: First topic as cover page
Posted: Fri Jan 28, 2022 7:37 am
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