Page breaks in Glossary
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- 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?
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?
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Page breaks in Glossary
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
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
-
- 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.
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.
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Page breaks in Glossary
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
Many regards,
Dan
-
- Posts: 501
- Joined: Mon Feb 03, 2003 10:56 am
Re: Page breaks in Glossary
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
and change it to :
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
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>
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>
Thank you for the bug report!
Many regards,
Dan
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service