XSL-FO conditional-page-master-reference
Object
Definition and Usage
The <fo:conditional-page-master-reference>
object specifies a page-master to be used when the defined conditions are met.
This allows different pages to use different page-masters (e.g., even and odd pages, the first page, blank pages).
Three attributes, odd-or-even, blank-or-not-blank, and page-position, define the conditions. The <fo:conditional-page-master-reference>
is met when all three conditions are satisfied.
The page-position is met if the generated page has the specified position (first, last, rest, any).
The odd-or-even is met if the value is "any" or if the parity of the value matches the page number.
The blank-or-not-blank is met if the value is "not-blank" and the page has areas generated by descendants of
<fo:flow>
, or if the value is "blank" and the page has no areas from<fo:flow>
, or if the value is "any".
Syntax
Attributes
Attribute |
---|
blank-or-not-blank |
master-reference |
odd-or-even |
page-position |