XSL-FO conditional-page-master-referenceObject
XSL-FO Reference Manual
Definition and Usage
The <fo:conditional-page-master-reference> object specifies a page-master to use when a defined condition is true.
This makes it possible for different pages to use different page-masters. (For example, even and odd pages, the first page, and blank pages.)
Three attributes, odd-or-even, blank-or-not-blank, and page-position, define the condition. When all three conditions are true, <fo:conditional-page-master-reference> is satisfied.
- The page-position condition is true if the generated page has a specified position (first, last, rest, any).
- The odd-or-even condition is true if the value is "any" or the parity of the value matches the page number.
- The blank-or-not-blank condition is true if the value is "not-blank" and the page has regions generated by descendants of <fo:flow>, or if the value is "blank" and the page has no regions from <fo:flow>, or if the value is "any".
Syntax
<fo:conditional-page-master-reference>
<!--
Contents:EMPTY
-->
</fo:conditional-page-master-reference>
<!--
Contents:EMPTY
-->
</fo:conditional-page-master-reference>
Attributes
| Attributes |
|---|
| blank-or-not-blank |
| master-reference |
| odd-or-even |
| page-postion |
XSL-FO Reference Manual Other Extensions