XSL Formatter Q&A



XSLT/XSL-FO/MathML Technics

Table

Top
Basic, General
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  We would like to add a "continued" caption on the subsequent pages of a table that spans multiple pages. [No.2005051301]
A. 

It is possible by using fo:retrieve-marker.

First of all, please specify fo:marker for the first and the last of the table as follows. The latter fo:marker plays a part in preventing the caption from being output to the final page, and you do not need to specify the attribute like line-height="0pt" because the latter fo:marker does not make the area.

<fo:block>
  <fo:marker marker-class-name="continued">
    <fo:inline ...>Continued on next page...</fo:inline>
  </fo:marker>
  <fo:table ...>
    ...
  </fo:table>
  <fo:block>
    <fo:marker marker-class-name="continued" />
  </fo:block>
</fo:block>

Next, please specify fo:retrieve-marker for fo:static-content only where fo:retrieve-maker is permitted to be set, and you must set retrieve-position="last-starting-within-page" as follows:

<fo:static-content ...>
  <fo:block ...>
    <fo:retrieve-marker retrieve-position="last-starting-within-page" retrieve-class-name="continued"/>
  </fo:block>

So, you can achieve your demand.

related matters:
How can I pick up the content from the current page and put into that page's header or footer? [No.2003051606]

When I format FO that uses fo:marker, the following errors appear. 2E03:Unexpected FO 'fo:marker' after 'fo:#text' in 'fo:block'. The error doesn't appear with XSL Formatter V2. [No.2004032504]


Copyright © 1999-2008 Antenna House, Inc. All rights reserved.
Antenna House is a trademark of Antenna House, Inc.