当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO conditional-page-master-reference 对象
The <fo:conditional-page-master-reference> object specifies a page-master to be used when the conditions defined are true.
<fo:conditional-page-master-reference>对象的作用是:指定一个当条件为True时所使用的页主[page-master]。
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[页面位置]、odd-or-even[奇偶页面]、blank-or-not-blank[空白页面]。上述三个条件必须都为true, <fo:conditional-page-master-reference>也同为true:
<fo:conditional-page-master-reference> <!-- Contents:EMPTY --> </fo:conditional-page-master-reference> |
属性 |
---|
blank-or-not-blank |
master-reference |
odd-or-even |
page-postion |