Page 1 of 1

Page breaks in Glossary

Posted: Tue May 29, 2018 6:00 pm
by anna_craneo
Hi,
I'm using DITA -> PDF with custom CSS transformation.
I have ditamap for Glossary with glossrefs.
When I generate PDF, all terms are at separate pages (with page breaks).
I have tried adding outputclass="page-break-avoid" but it does not work.
How can I avoid page breaks in any other way?

Re: Page breaks in Glossary

Posted: Wed May 30, 2018 11:48 am
by Dan
Hello Anna,

I could not reproduce the problem using a simple map.

Please try to run the default transformation scenario, with no customization:

If the page breaks are not appearing it means there are some selectors in your customization CSS that cause this problem.
If the page breaks are still appearing, please send us on the support email a small sample demonstrating the problem.

Many regards,
Dan

Re: Page breaks in Glossary

Posted: Wed May 30, 2018 3:49 pm
by anna_craneo
Dan,

I think I should specify that I use DITA -> PDF WYSIWYG transformation. A default one as well as with my srtles does not work.
Though DITA -> PDF produces the correct result.

Re: Page breaks in Glossary

Posted: Wed May 30, 2018 4:31 pm
by Dan
Ok. Please reproduce with a very small sample, then send it to us using the support form: https://www.oxygenxml.com/contact.html

Many regards,
Dan

Re: Page breaks in Glossary

Posted: Thu May 31, 2018 2:13 pm
by Dan
Hello,

The glossref elements are on the first level in the DITA map and the publishing process considers them to be chapters. This is a bug.

Workarounds:
1. Wrap the glossref elements into a topicref, or:
2. Change the XSL file [OXYGEN_INSTALL_DIR]/frameworks/dita/DITA-OT2.x/plugins/com.oxygenxml.pdf.css/xsl/post-process-chapters.xsl, locate

Code: Select all

<xsl:when test="$toc-item/parent::opentopic:map">
<xsl:value-of select="true()"/>
</xsl:when>
and change it to :

Code: Select all

<xsl:when test="$toc-item/parent::opentopic:map and not(contains($toc-item/@class, ' glossref-d/glossref '))">
<xsl:value-of select="true()"/>
</xsl:when>
The fix in the XSLT stylesheet will be available in the next oXygen release that will be released in June.

Thank you for the bug report!
Many regards,
Dan