Hartmut: XSL-FO Textfluss

Umgebung: Erzeugung von pdf aus xml mit Stylus-Studio 2007 Professional mit eingebautem Apache-FOP (Version unbekannt).

Problem: Manche Überschriften stehen einzeln unten auf der Seite.

Ausschnitt der xml-Quelle:

<sect1 id="...">
  <title>Kapitel 0</title>
  <para>Absatztext...</para>
  ...
</sect1>

Ausschnitt des stylesheets:

<xsl:template match="sect1">
  <xsl:apply-templates />
</xsl:template>

<xsl:template match="sect1/title">
  <fo:block ... keep-with-next.within-page="always">
    <xsl:apply-templates />
  </fo:block>
</xsl:template>

<xsl:template match="para">
  <fo:block ...>
    <xsl:apply-templates />
  </fo:block>
</xsl:template>