dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post here questions and problems related to editing and publishing DITA content.
xin-kevin
Posts: 5
Joined: Wed Jan 19, 2022 8:56 am

dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by xin-kevin »

Hi,
Since DITA-OT 3.1, in an ordered or unordered list, if a bullet has a second level ordered or unordered list and the second-level list is too long to fit into the remaining space in the current page, this bullet starts a new page.
For example:
fig.png
fig.png (14.46 KiB) Viewed 1068 times
As shown in the image above, bullet '4444' has a long list, and bullet '4444' starts a new page.
But I want bullet '4444' stays in the current page and the second-level list breaks, just like this:
xin-kevin
Posts: 5
Joined: Wed Jan 19, 2022 8:56 am

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by xin-kevin »

ff.png
ff.png (11.51 KiB) Viewed 1067 times
xin-kevin
Posts: 5
Joined: Wed Jan 19, 2022 8:56 am

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by xin-kevin »

Could someone help me on this? Thanks a lot!
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by Radu »

Hi,
During the last 3-4 years we invested in an Oxygen specific engine named Chemistry which produces PDF from DITA using CSS. We no longer officially offer support for the XSL-FO based PDF publishing.

Just to try and give you some hints:
What DITA OT version are you using right now?
Do you also have a PDF customization plugin? If you do and you remove your plugin from the publishing engine do you still get the problem?
Maybe if you set the "clean.temp=no" parameter and produce the PDF you can look in the transformation temporary folder and open the "topic.fo" in Oxygen you can format and indent it and then look for that specific list, see for example what "keep-together" attributes are set on the list or on the list items.

As another approach you can also register and ask around on the public DITA Users List: https://dita-users.groups.io/g/main

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xin-kevin
Posts: 5
Joined: Wed Jan 19, 2022 8:56 am

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by xin-kevin »

Hi Radu,

Thanks for your reply.
I'm using DITA-OT 3.1, and I created a customized plugin based on "org.dita.pdf2".
I added '<xsl:attribute name="keep-with-previous.within-page">always</xsl:attribute>' in 'cfg\fo\attrs\lists-attr.xsl', but it does not work.
I found this phenomenon from DITA-OT 3.1 to DITA-OT 3.6.1, but it dissappears in DITA-OT 3.7.

I'll check "topic.fo" file.
Maybe I should try Oxygen engine Chemistry :D
Thank you so much!
Radu
Posts: 8992
Joined: Fri Jul 09, 2004 5:18 pm

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by Radu »

Hi,

Indeed DITA OT 3.7 was released a few days ago, looking in its release notes I do not see there anything specific to list item bullets though:
https://www.dita-ot.org/3.7/release-notes/

If at some point in the future you will want to try using the CSS based PDF publishing, CSS has its own properties to control page breaks:
https://www.oxygenxml.com/doc/versions/ ... aking.html

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
xin-kevin
Posts: 5
Joined: Wed Jan 19, 2022 8:56 am

Re: dita-ot 3.1 org.dita.pdf2 list bullet starts a new page

Post by xin-kevin »

Hi Radu,
All right, thank you!
Post Reply