On 06/22/2017 11:34 AM, Grundtvig Nielsen Niels wrote:
… I’ve seen allusions to a ‘keep with next’ option in the release notes
and wonder whether it’s available in DITA tasks: the more tasks I write,
the more I see conversion to .pdf leaving the single-line <cmd> on one
page and the related <info> on another. I am of course reluctant to
invent extra content just to push the <cmd> to the next page and keep
the elements together :-}
Hints welcome! or, even, confirmation it can’t be done – just so that I
know.
This is a bug in our XSLT stylesheets. An omission to be more precise.
The workaround is to add attribute:
keep-together.within-column = always
to the attribute-sets called:
step
compact-step
unordered-step
compact-unordered-step
(depending on which kind of step you use in your documents.)
This can be done from within XXE using XMLmind XSL Customizer. See
- 8.1. "Customize Configuration" menu,
http://www.xmlmind.com/xmleditor/_distrib/doc/help/customizeConfigurationMenu.html#editConversionStylesheetsAction
- 14.3. The "XMLmind XSL Customizer" application,
http://www.xmlmind.com/xmleditor/_distrib/doc/help/com.xmlmind.xslcustom.Customizer.html
IMPORTANT: If after doing that, you still have <cmd> on one
page and the related <info> on another, then this means that Apache FOP
does not support keep-together.within-column = always (which would be a
surprise).
We have purchased RenderX XEP to generate our PDFs and it works with
that commercial XSL-FO processor. (I'm pretty sure there is no problem
with Antenna House too.)
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support