prevent page break between topic title and topic content
Posted: Mon Mar 06, 2017 5:49 pm
Hi,
in my PDF transformation I want to keep the topic title with the topic content, and not have the transformation insert a page break between them when the topic title would be rendered at the bottom of a page, but put the title at the top of the next page, together with the content.
I created a custom plugin and have inserted the following in the file commons-attr.xsl for the topic.title attribute set and all other attribute sets that format topic titles (topic.topic.title, topic.topic.topic.title, etc.):
However the title is still rendered at the bottom of a page and the topic content on the next page.
I'm using Oxygen Editor 18.1 with DITA OT 2.3.3.
Can you please let me know what else I need to change to have the title and topic content appear together, without a page break inbetween?
Thanks,
Angela
in my PDF transformation I want to keep the topic title with the topic content, and not have the transformation insert a page break between them when the topic title would be rendered at the bottom of a page, but put the title at the top of the next page, together with the content.
I created a custom plugin and have inserted the following in the file commons-attr.xsl for the topic.title attribute set and all other attribute sets that format topic titles (topic.topic.title, topic.topic.topic.title, etc.):
Code: Select all
<xsl:attribute name="keep-with-next.within-page">always</xsl:attribute>
I'm using Oxygen Editor 18.1 with DITA OT 2.3.3.
Can you please let me know what else I need to change to have the title and topic content appear together, without a page break inbetween?
Thanks,
Angela