Olivier,

The quick answer is "No. But there are people wanting to write an extension function to do this."

What you can do is return the page number that the table sits on within the page sequence in which the table sits. So, if you can do without page numbers on your output, you can create a new page sequence for each table, set the initial-page-number = 1, and then return the page number (Code attached)

Chuck Paussa

Olivier Rossel wrote:

Is it possible to have when you are using a table header, a variable that tells how many times this header has already been
duplicated, because of page break.
Si you can have a header that displays on the first page:
Table important
and on the second page:
Table important (2)
and on the third page
Table important (3)




<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="simplet" page-width="200mm" page-height="20mm">
			<fo:region-before extent="10mm"/>
			<fo:region-body margin-top="10mm"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-name="simplet" initial-page-number="1">
		<fo:static-content flow-name="xsl-region-before">
			<fo:table>
				<fo:table-column column-width="3in"/>
				<fo:table-column column-width="3in"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="2">
							<fo:block>
							Table 2: Page <fo:page-number/> of <fo:page-number-citation ref-id="terminator1"/>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Header 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Header 2</fo:block> </fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:table>
				<fo:table-column column-width="3in"/>
				<fo:table-column column-width="3in"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
			<fo:block id="terminator1"/>
		</fo:flow>
	</fo:page-sequence>
	<fo:page-sequence master-name="simplet" initial-page-number="1">
		<fo:static-content flow-name="xsl-region-before">
			<fo:table>
				<fo:table-column column-width="3in"/>
				<fo:table-column column-width="3in"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell number-columns-spanned="2">
							<fo:block>
							Table 2: Page <fo:page-number/> of <fo:page-number-citation ref-id="terminator2"/>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Header 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Header 2</fo:block> </fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:table>
				<fo:table-column column-width="3in"/>
				<fo:table-column column-width="3in"/>
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
					<fo:table-row>
						<fo:table-cell> <fo:block>Column 1</fo:block> </fo:table-cell>
						<fo:table-cell> <fo:block>Column 2</fo:block> </fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
			<fo:block id="terminator2"/>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Reply via email to