XSL FO: <FO:inline-container> overflowing table content

53 views Asked by At

I have a fo:table inside fo:inline-contaner. My question is ,How to place overflowing table below in the page or in the next page. I am using apache xmlgraphics 2.7 Here is a short code extract:

                    <fo:block line-stacking-strategy="max-height">

                        <xsl:for-each select="./somelist">
                            <fo:inline-container>
                            <xsl:text>&#8203;</xsl:text>
                            <fo:table width="100%" border="1pt solid black">
                                <fo:table-column column-width="50%"/>
                                <fo:table-column column-width="50%"/>
                                <fo:table-header>
                                    <fo:table-row background-color="lightgrey">
                                        <fo:table-cell>
                                            <fo:block font-weight="bold">Header 1</fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block font-weight="bold">Header 2</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-header>
                                <fo:table-body>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>Row 1, Cell 1</fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Row 1, Cell 2</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                    <fo:table-row>
                                        <fo:table-cell>
                                            <fo:block>Row 2, Cell 1</fo:block>
                                        </fo:table-cell>
                                        <fo:table-cell>
                                            <fo:block>Row 2, Cell 2</fo:block>
                                        </fo:table-cell>
                                    </fo:table-row>
                                </fo:table-body>
                            </fo:table>
                            </fo:inline-container>
                        </xsl:for-each>
                    </fo:block>

And output of above code is: enter image description here

Current Behaviour: enter image description here

expected behaviour:

enter image description here

0

There are 0 answers