Page breaks in Glossary

Having trouble installing Oxygen? Got a bug to report? Post it all here.
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Page breaks in Glossary

Post 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?
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Page breaks in Glossary

Post 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
anna_craneo
Posts: 33
Joined: Tue Feb 20, 2018 2:51 pm

Re: Page breaks in Glossary

Post 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.
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Page breaks in Glossary

Post 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
Dan
Posts: 501
Joined: Mon Feb 03, 2003 10:56 am

Re: Page breaks in Glossary

Post 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
Post Reply