Page 1 of 1

How to include Legal page after cover Page ?

Posted: Mon Feb 17, 2020 8:55 pm
by sia
Hi all,
How do I include a legal/ disclaimer page after the cover page but before TOC ?

Also, currently I have done a break page and added within front matter only . If we can do this then how do I enable header and footer for that page. I am unable to set header and footer for legal page.
Else everywhere I am able to define the header and footer.

Thank you.
Best,
Sia

Re: How to include Legal page after cover Page ?

Posted: Tue Feb 18, 2020 1:20 pm
by Dan
If you are using a DITA PDF transformation, you can simply use a bookmap instead of a map, and arrange the topics as you need in the preface element. For an example please see: https://docs.oasis-open.org/dita/v1.2/o ... okmap.html

If you are using other transformations please let us know.

Many regards,
Dan

Re: How to include Legal page after cover Page ?

Posted: Thu Mar 19, 2020 10:01 pm
by sia
Hi,
Thank you for the recommendation. But my code is still not working. I am unable to generate the preface page .
Currently it is something like this:

in the preface.xsl file :
<xsl:template name="processTopicPreface">

<xsl:call-template name="insertPrefaceStaticContents"/>

<xsl:call-template name="disclaimer"/>
<xsl:text> PTPIF otherwise test match </xsl:text>

</xsl:template>
where disclaimer is a another template that has the contents.

we have a map to bookmap conversion file :
<xsl:template match="map/title">
<title>
<xsl:apply-templates select="@*|node()"/>
</title>
<frontmatter class="- map/topicref bookmap/frontmatter ">
<notices class="- map/topicref bookmap/notices " toc="yes"/>
<preface class="- map/topicref bookmap/preface" toc="yes">
<booklists class="- map/topicref bookmap/booklists ">
<toc class="- map/topicref bookmap/toc "/>
<figurelist class="- map/topicref bookmap/figurelist "/>
<tablelist class="- map/topicref bookmap/tablelist "/>
</booklists>
</frontmatter>
</xsl:template>



neither the preface nor the notices is being generated. But if I try the same method on a test case scenario using href, it is working.

Kindly let me know what can be a workaround to include notices/ preface for a legal page as currently nothing is being rendered.

Re: How to include Legal page after cover Page ?

Posted: Fri Mar 20, 2020 10:49 am
by Dan
Hello,

I see you are using the classical PDF transformation, based on XSL-FO, and you are trying to change the preface.xsl file from the DITA-OT PDF2 plugin.

Here are some hints:
- For complex documentation please use a bookmap instead of map. One way is to manually convert your maps to bookmaps, by editing them and adding the required elements. Maybe you can automate this by using XSLT, but it should be a special transformation, not necessarily integrated into the DITA-OT PDF plugin.
- In case you must stick to maps and cannot move to bookmaps, then you can go on with XSL customization of the PDF2 plugin as you started, but make sure you generate FO elements, not DITA elements, because the output of the preface.xsl is FO, not DITA.

Many regards,
Dan