AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Extensions

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  I used axf:suppress-duplicate-page-number="true" on the index page to delete the duplicated page number. However, the line breaks after the leader (before the page number). [No.2007042702]
A. 

Your FO is as follows:

<fo:block axf:suppress-duplicate-page-number="true" text-align-last="justify">Antenna<fo:inline>
		<fo:leader font-weight="normal" leader-length.optimum="0pt" leader-pattern="dots"/>
		<fo:basic-link internal-destination="IDX_N10027">
			<fo:page-number-citation ref-id="IDX_N10027"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10030">
			<fo:page-number-citation ref-id="IDX_N10030"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10039">
			<fo:page-number-citation ref-id="IDX_N10039"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10042">
			<fo:page-number-citation ref-id="IDX_N10042"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N1004B">
			<fo:page-number-citation ref-id="IDX_N1004B"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10054">
			<fo:page-number-citation ref-id="IDX_N10054"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N1005D">
			<fo:page-number-citation ref-id="IDX_N1005D"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10066">
			<fo:page-number-citation ref-id="IDX_N10066"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N1006F">
			<fo:page-number-citation ref-id="IDX_N1006F"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10078">
			<fo:page-number-citation ref-id="IDX_N10078"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10081">
			<fo:page-number-citation ref-id="IDX_N10081"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N1008A">
			<fo:page-number-citation ref-id="IDX_N1008A"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N10093">
			<fo:page-number-citation ref-id="IDX_N10093"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N1009C">
			<fo:page-number-citation ref-id="IDX_N1009C"/>
		</fo:basic-link>, <fo:basic-link internal-destination="IDX_N100A5">
			<fo:page-number-citation ref-id="IDX_N100A5"/>
		</fo:basic-link>
	</fo:inline>
</fo:block>

In this FO, fo:page-number-citation has 15 ID references ID in this FO. In addition, the index page was forward, and the referred item existed on a rear page.

When the reference page numbers are the same all numbers, the displayed page number is one. However, fo:page-number-citation is formatted unsettled, and the line broken point is decided in this case. It is not decided whether the displayed page number is the same at that time even if axf:suppress-duplicate-page-number="true" is specified. Therefore, the page number cannot be unified. After all pages are formatted, and the page number is clarified, the same number will be brought together. And, the line broken position doesn't change at this time.

This is a limitation of XSL Formatter.

The way of the solution is to move the index to the end of a book, or to use the formatting two paths. The formatting two paths is specified for instance as follows.

xslcmd -d test.fo -o test.pdf -2pass

Please refer to -2pass of online manual "Command line interface" for details.


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