Hi,

as suggested by existing threads in this list I generate footnote reference numbers with XSL. See also:

http://apache-fop.1065347.n5.nabble.com/Footnote-question-td7255.html

This works perfectly for normal text, but now I have a new case where footnotes are inside table cells and the processing sequence of FOP doesn't match the one of XSL. Internally FOP seems to process table cell contents by line, going from left to right (across multiple cells). XSL on the other hand processes the first cell completely and then the next cell and so on.

The output is that the ordering of the footnote bodies in the footer isn't the one expected by the user. See also the attached examples (fo + pdf): "Footnote 3" is second but should be third.

I understand that the processing has to be done like that, especially if a page break occurs inside the table cell. Footnotes at the bottom of a table cell would be pushed to the next page, making the resulting footnote body order ok again. What I would like to do is to (optionally) modify the processing order in FOP in case a keep condition is defined for the table row. Has anybody tried to do something similar? Could anybody of the table/footnote gurus please point me in the right direction?

Btw... Too bad that xsl fo doesn't define an element for a truly automatic footnote numbering (similar to Antenna House's <axf:footnote-number/>). Is it part of xsl fo 2.0?

Best regards,
Matthias Reischenbacher
<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"; xmlns:svg="http://www.w3.org/2000/svg";>
	<fo:layout-master-set>
		<fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="normal" white-space-collapse="true">
		<fo:static-content flow-name="xsl-footnote-separator">
			<fo:block border-top="solid 5pt red"/>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:table table-layout="fixed" width="100%">
				<fo:table-body>
					<fo:table-row>
						<fo:table-cell>
							<fo:block>line1</fo:block>
							<fo:block>line2<fo:footnote>
								<fo:inline font-size="70%" baseline-shift="super">1</fo:inline>
								<fo:footnote-body>
									<fo:block background-color="orange">Footnote 1</fo:block>
								</fo:footnote-body>
							</fo:footnote>
						</fo:block>
							<fo:block>line3</fo:block>
							<fo:block>line4</fo:block>
							<fo:block>
								line5<fo:footnote>
									<fo:inline font-size="70%" baseline-shift="super">2</fo:inline>
									<fo:footnote-body>
										<fo:block background-color="orange">Footnote 2</fo:block>
									</fo:footnote-body>
								</fo:footnote>
							</fo:block>
						</fo:table-cell>
						<fo:table-cell>
							<fo:block>line1</fo:block>
							<fo:block>
								line2<fo:footnote>
									<fo:inline font-size="70%" baseline-shift="super">3</fo:inline>
									<fo:footnote-body>
										<fo:block background-color="orange">Footnote 3</fo:block>
									</fo:footnote-body>
								</fo:footnote>
							</fo:block>
						</fo:table-cell>
					</fo:table-row>
				</fo:table-body>
			</fo:table>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Attachment: footnote-order.pdf
Description: Adobe PDF document

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-h...@xmlgraphics.apache.org

Reply via email to