Page break in PDF
Posted: Tue Dec 06, 2016 5:08 pm
I have a few topic groups in a chapter that I would like to start on new page as they belong together rather than just flowing from the previous set of topics.
I was hoping I could do it with the following in the XSLT:
<xsl:attribute-set name="topicgroup">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
However, I then noticed this had no effect and discovered the following was commented out so no processing of topicgroup takes place:
<!-- The following three template matches are based on class attributes
that do not exist. They have been commented out starting with
the DITA-OT 1.5 release, with SourceForge tracker #2882085. -->
<!--<xsl:template match="*[contains(@class, ' topic/topicgroup ')]">
<fo:block xsl:use-attribute-sets="topicgroup" id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>-->
I tried uncommenting it but with no luck.
Any idea's how to force the PDF to page-break before a <topicgroup> in the bookmap?
I was hoping I could do it with the following in the XSLT:
<xsl:attribute-set name="topicgroup">
<xsl:attribute name="break-before">page</xsl:attribute>
</xsl:attribute-set>
However, I then noticed this had no effect and discovered the following was commented out so no processing of topicgroup takes place:
<!-- The following three template matches are based on class attributes
that do not exist. They have been commented out starting with
the DITA-OT 1.5 release, with SourceForge tracker #2882085. -->
<!--<xsl:template match="*[contains(@class, ' topic/topicgroup ')]">
<fo:block xsl:use-attribute-sets="topicgroup" id="{@id}">
<xsl:apply-templates/>
</fo:block>
</xsl:template>-->
I tried uncommenting it but with no luck.
Any idea's how to force the PDF to page-break before a <topicgroup> in the bookmap?