W3Schools.com

XSL-FO conditional-page-master-reference Object

Back

Definition and Usage

The <fo:conditional-page-master-reference> object specifies a page-master to be used when the conditions defined are true.

This allows different page-masters to be used for different pages (e.g. odd and even pages, first page, blank pages).

Three properties, page-position, odd-or-even, blank-or-not-blank, specifies the conditions. All three conditions must be true for the <fo:conditional-page-master-reference> to be true.

  • page-position is true if the generated page has the specified position (first, last, rest, any)
  • odd-or-even is true if the value is "any" or if the value (odd, even) matches the page number
  • blank-or-not-blank is true, if the value is "not-blank" and the page has areas generated by descendants of <fo:flow>; if the value is "blank" and the page has no areas from <fo:flow>; or if the value is "any"

Syntax

<fo:conditional-page-master-reference>
  <!--
    Contents:EMPTY
  -->
</fo:conditional-page-master-reference>

Properties

Property
blank-or-not-blank
master-reference
odd-or-even
page-postion


Back
WEB HOSTING
Best Web Hosting
PHP MySQL Hosting
Best Hosting Coupons
UK Reseller Hosting
Cloud Hosting
Top Web Hosting
$7.95/mo SEO Hosting
Premium Website Design
WEB BUILDING
XML Editor - Free Trial!
FREE Website BUILDER
Free Website Templates Free CSS Templates
Make Your Own Website
W3SCHOOLS EXAMS
Get Certified in:
HTML, CSS, JavaScript, XML, PHP, and ASP
W3SCHOOLS BOOKS
New Books:
HTML, CSS
JavaScript, and Ajax
STATISTICS
Browser Statistics
Browser OS
Browser Display
SHARE THIS PAGE