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?
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-headerto whatever title you want to use on continued pages and use a regularfo:blockfor the initial title.You can then use the
rx:table-omit-initial-header="true"attribute on yourfo:tableto not output the table header when the table is first output.Here’s an example rendered by RenderX 4.18…
Example XSL-FO
Example PDF Output Page 1
Example PDF Output Page 2