XSL-FO Overflow Handling for fo:inline-container Elements
<h2>XSL-FO Overflow Handling for fo:inline-container Elements</h2>

<p>My question is: How is it possible to break contents (e.g. <strong>fo:block</strong> elements) inside a <strong>fo:inline-container</strong> to a new page if the iherit contents are too long for the current one?</p>

<p>Used Fomatters: AHF 6.2, Apache FOP 2.1</p>

<ul>
<li>The transformation has to work for both formatters; so a simple solution with fo:float elements is not possible.</li>
</ul>

<p>Here is a short code extract:</p>

<pre><code>&lt;xsl:template match="myElement"&gt;
    &lt;fo:block&gt;
        &lt;fo:inline-container inline-progression-dimension="33.333%"&gt;
            &lt;fo:block&gt;
                Marginalia Headline
            &lt;/fo:block&gt;
        &lt;/fo:inline-container&gt;

        &lt;fo:inline-container inline-progression-dimension="66.666%"&gt;
            &lt;fo:block&gt;
                Imagine this is a very long text ...
            &lt;/fo:block&gt;
            &lt;fo:block&gt;
                Imagine this is a very long text ...
            &lt;/fo:block&gt;
            &lt;fo:block&gt;
                Imagine this is a very long text ...
            &lt;/fo:block&gt;
            &lt;!-- MANY MORE fo:blocks --&gt;
        &lt;/fo:inline-container&gt;
    &lt;/fo:block&gt;
&lt;/xsl:template&gt;
</code></pre>

<p>The thing is, the contents are overflowing the fo:inline-container but are not breaking onto a new page. I think this has something to do with the <strong>surrounding fo:block</strong> element that keeps everything on a single page.</p>

<p>Any advice would be helpful here. Thank you in advance!</p>