Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9033741
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T08:18:18+00:00 2026-06-16T08:18:18+00:00

I have some very long tables which span multiple pages, rendered with Apache-FOP 1.1

  • 0

I have some very long tables which span multiple pages, rendered with Apache-FOP 1.1

A table has a caption, such as “Table 7.6. Details of Something” and column headers.

On each continued page, the column headers are properly repeated at the top. But I also need to have the table continuations have the caption as well, in the form: “Table 7.6. Details of Something (continued)”

Is there any way to do this with XSL-FO and Apache-FOP? or does it require extensions perhaps available via RenderX?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T08:18:19+00:00Added an answer on June 16, 2026 at 8:18 am

    I don’t know of a way to do it in FOP, but that might because I haven’t used FOP for anything more than basic PDF generation.

    Using RenderX (XEP), you can set your fo:table-header to whatever title you want to use on continued pages and use a regular fo:block for the initial title.

    You can then use the rx:table-omit-initial-header="true" attribute on your fo:table to not output the table header when the table is first output.

    Here’s an example rendered by RenderX 4.18…

    Example XSL-FO

    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
        xmlns:rx="http://www.renderx.com/XSL/Extensions">
        <fo:layout-master-set>
            <fo:simple-page-master master-name="my-page" page-width="8.5in" page-height="11in">
                <fo:region-body margin="1in" margin-top="1.5in" margin-bottom="1.5in"/>
            </fo:simple-page-master>
        </fo:layout-master-set>
        <fo:page-sequence master-reference="my-page">
            <fo:flow flow-name="xsl-region-body">
                <fo:block font-size="12pt" font-weight="bold" 
                    text-align="center" space-after="6pt">Sample Table</fo:block>
                <fo:block>
                    <fo:table rx:table-omit-initial-header="true" space-before=".08in">
                        <fo:table-column column-width="100%"/>
                        <fo:table-header>
                            <fo:table-cell>
                                <fo:block font-weight="bold"
                                    font-size="12pt" text-align="center" 
                                    space-after="6pt">Sample Table (Cont)</fo:block>
                            </fo:table-cell>
                        </fo:table-header>
                        <fo:table-body>
                            <fo:table-row>
                                <fo:table-cell>
                                    <fo:table border-style="solid" border-width="1pt" padding="6pt">
                                        <fo:table-column column-number="1" column-width="20%"/>
                                        <fo:table-column column-number="2" column-width="80%"/>
                                        <fo:table-header font-weight="bold">
                                            <fo:table-cell text-align="left">
                                                <fo:block>Column 1</fo:block>
                                            </fo:table-cell>
                                            <fo:table-cell>
                                                <fo:block>Column 2</fo:block>
                                            </fo:table-cell>
                                        </fo:table-header>
                                        <fo:table-body>
                                            <fo:table-row padding-before="20px">
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                            <fo:table-row>
                                                <fo:table-cell>
                                                    <fo:block>Lorem ipsum dolor sit amet</fo:block>
                                                </fo:table-cell>
                                                <fo:table-cell>
                                                    <fo:block>Ten years ago a crack commando unit was sent to prison by a military court for a crime they didn’t commit. These men promptly escaped from a
                                                        maximum security stockade to the Los Angeles underground. Today, still wanted by the government, they survive as soldiers of fortune.</fo:block>
                                                </fo:table-cell>
                                            </fo:table-row>
                                        </fo:table-body>
                                    </fo:table>
                                </fo:table-cell>
                            </fo:table-row>
                        </fo:table-body>
                    </fo:table>
                </fo:block>
            </fo:flow>
        </fo:page-sequence>
    </fo:root>
    

    Example PDF Output Page 1

    enter image description here

    Example PDF Output Page 2

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a SlickGrid data table and some of my cells have very long
I have the following code in specman: var x := some.very.long.path.to.a.variable.in.another.struct; while (x ==
I have a 3yr old application that has some controllers with some very unrestful
I have some tables which all have a field named created_at , that's a
I have some nested tables in a containing column table. The bottom table just
I have a table named categories, which contains ID(long), Name(varchar(50)), parentID(long), and shownByDefault(boolean) columns.
I have a scenario which is causing very long running processes and suspect it
I have some very long draggable elements that I can drop in all cells
I have some very simple XML: <properties> <property> <name>BobFish</name> <explaination>Bob is a fish.</explaination> </property>
I have some very basic semaphore code that works great on Linux, but cannot

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.