W3C home > Mailing lists > Public > www-xsl-fo@w3.org > September 2010

keep-with-next "always" not working sometimes

From: Christian Kirchhoff <christian.kirchhoff@editura.de>
Date: Mon, 27 Sep 2010 05:26:42 -0700 (PDT)
Message-ID: <29815746.post@talk.nabble.com>
To: www-xsl-fo@w3.org

the xsl-fo I am working on will be converted into a PDF with XEP/RenderX.

I have the following exemplary tagging:
<fo:block keep-together="always" keep-with-next="always">2.</fo:block>
<fo:block widows="5" orphans="5" hyphenate="false">
    Kein Lebenslaut stört die Natur<fo:block/>
    In ihrem herbstlich stillen Leide;<fo:block/>
    Es scheint die Sonne lässig nur<fo:block/>
    Hernieder auf die braune Haide.<fo:block/>
    Da ist kein Baum, umwebt von Moos,<fo:block/>
    Aus dessen Zweigen Vögel sängen,<fo:block/>
    Da ist kein Fels, aus dessen Schoß<fo:block/>
    Krystallne Quellen lustig sprängen!<fo:block/>

With the givven page settings, the first line of the 2nd block ("Kein
Lebenslaut stört die Natur") would appear alone on the bottom of the page.
Because of the settings for widows and orphans that first line is rendered
on a new page. And thus the content of the 1st block ("2.") is rendered
alone as the last text on the actual page.

In my understanding the keep-with-next "always" should the cause the 1st and
2nd block to always appear on the same page. But apparently that is not the
case. Is there any way to achieve what I want?

Any help would be greatly appreciated.

Best regards

Christian Kirchhoff 
View this message in context: http://old.nabble.com/keep-with-next-%22always%22-not-working-sometimes-tp29815746p29815746.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Monday, 27 September 2010 13:39:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:10:13 UTC