XSL-FO conditional-page-master-reference Object
XSL-FO Reference Manual
Definition and Usage
fo:conditional-page-master-reference The object specifies a page-master to be used when a defined condition holds.
This allows different pages to use different page-masters (for example, even and odd pages, the first page, blank pages).
Three properties, odd-or-even, blank-or-not-blank, and page-position, specify the conditions. When all three conditions hold,fo:conditional-page-master-reference holds.
- page-position holds if the generated page has the specified position (first, last, rest, any).
- odd-or-even holds if the value is "any" or if the parity of the value matches the page number.
- blank-or-not-blank holds if the value is "not-blank" and the page has an area generated by fo:flow descendants, or if the value is "blank" and the page has no area from fo:flow descendants, or if the value is "any".
Syntax
fo:conditional-page-master-reference
property
| property |
|---|
| blank-or-not-blank |
| master-reference |
| odd-or-even |
| page-postion |
XSL-FO Reference Manual