Page 1 of 1

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

Posted: Wed Jan 19, 2022 9:20 am
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 1083 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:

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

Posted: Wed Jan 19, 2022 9:20 am
by xin-kevin
ff.png
ff.png (11.51 KiB) Viewed 1082 times

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

Posted: Wed Jan 19, 2022 9:23 am
by xin-kevin
Could someone help me on this? Thanks a lot!

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

Posted: Wed Jan 19, 2022 2:00 pm
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

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

Posted: Thu Jan 20, 2022 12:47 pm
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!

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

Posted: Thu Jan 20, 2022 12:55 pm
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

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

Posted: Mon Jan 24, 2022 5:17 am
by xin-kevin
Hi Radu,
All right, thank you!