How to control widows and orphans in a Docbook FO XSL customization layer?
Posted: Fri Dec 13, 2019 12:51 am
Dear friends,
I need to know how to remove widow/orphan constraints from blocks in formatted output (FO) for Docbook source, because the default setting of "2" is leaving too much white space in my documents in certain places. For example, please see the attached screenshot.
A code snippet for some of this output is:
I have tried adding this to my FO XSL customization file:
But get no results. What am I doing wrong?
I need to know how to remove widow/orphan constraints from blocks in formatted output (FO) for Docbook source, because the default setting of "2" is leaving too much white space in my documents in certain places. For example, please see the attached screenshot.
A code snippet for some of this output is:
Code: Select all
...
<listitem>
<formalpara>
<title><guilabel>14 Pause before reading data</guilabel></title>
<para>This parameter specifies a time for the DataHub to pause before
reading the OPC server's data set. Some OPC DA servers report
that they are running, but have not yet received the full data
set from the process. If the DataHub attempts to connect right away,
it might get a partial data set. The pause is fixed; it will
always last for the full time specified.</para>
</formalpara>
</listitem>
</itemizedlist>
</step>
<step>
<para>Finally, you can specify how the OPC items get selected. You can select
them manually or load all of them. </para>
<mediaobject>
<imageobject>
<imagedata fileref="../cdh-prop-opcdefine-4.gif" align="center"/>
</imageobject>
</mediaobject>
<variablelist>
<varlistentry>
<term><guilabel>Manually Select Items</guilabel></term>
<listitem>
<para>Check the <guibutton>Manually Select Items</guibutton> box and
press the <guibutton>Configure Items</guibutton> button to open
the OPC Item Selection window, where you can specify exactly
which points you wish to use:</para>
...
Code: Select all
<xsl:attribute-set name="block">
<xsl:attribute name="widows">1</xsl:attribute>
<xsl:attribute name="orphans">1</xsl:attribute>
</xsl:attribute-set>