AH Formatter / XSL Formatter
Q&A



XSLT/XSL-FO/MathML Technics

Pagenation

Top
Basic, General
About AH Formatter
About XSL Formatter
Operation
Programming
XSLT/XSL-FO/SVG/MathML Conformance
XSLT/XSL-FO/MathML Technics
Index
Q.  In the page sequence master, I specified page-position="first", page-position="rest" and page-position="any" to fo:conditional-page-master-reference for each. However, in the last page, fo:conditional-page-master-reference with page-osition="rest" is not applied. Why? [No.2002112902]
A. 

Your FO is as follows:

<fo:layout-master-set>
    <fo:simple-page-master master-name="firstpage" page-height="210mm" page-width="297mm">
                .
                .
                .
    </fo:simple-page-master>

    <fo:simple-page-master master-name="restpage" page-height="210mm" page-width="297mm">
                .
                .
                .
    </fo:simple-page-master>

    <fo:simple-page-master master-name="blankpage" page-height="210mm" page-width="297mm">
                .
                .
                .
    </fo:simple-page-master>

    <fo:page-sequence-master master-name="document">
        <fo:repeatable-page-master-alternatives>
            <fo:conditional-page-master-reference page-position="first" master-reference="firstpage"/>
            <fo:conditional-page-master-reference page-position="rest" master-reference="restpage"/>
            <fo:conditional-page-master-reference page-position="any" master-reference="blankpage"/>
        </fo:repeatable-page-master-alternatives>
    </fo:page-sequence-master>
</fo:layout-master-set>
            .
            .
            .
            .

See the description of "rest" of 7.25.14 "page-position" in the W3C Recommendation .

This master is eligible for selection if this is not the first page nor the last page in the page-sequence.

page-position="rest" is applied for the page except for page-position="first" and page-position="last". There is no fo:conditional-page-master-reference specified as page-position="last".

XSL Formatter uses the last fo:conditional-page-master-reference in fo:repeatable-page-master-alternative as the next alternative when there is no fo:conditional-page-master-reference in fo:repeatable-page-master-alternative instead of showing an error message. Then, XSL Formatter continues formatting.

Therefore, in the case of the above FO, fo:conditional-page-master in which page-position="any" is specified becomes the next alternative. The last page is formatted by using "any".

However, since incorrect FO is formatted, the result is not warranted.


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