网络学院 w3pop社区 网络资源 IT新闻

w3pop.com :: 网络学院 :: XSL-FO :: XSL-FO conditional-page-master-reference 对象

会员登陆

帐号

密码

回答

记住密码

忘记密码? 注册

XSL-FO conditional-page-master-reference 对象


作者:w3pop.com 翻译/整理:w3pop.com 发布:2007-04-29 浏览:544 :: ::

Definition and Usage
定义和用法

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:

  • page-position is true if the generated page has the specified position (first, last, rest, any)
    如果产生的页面已经指定了位置,那么page-position[页面位置]为true[真]
  • odd-or-even is true if the value is "any" or if the value (odd, even) matches the page number
    如果值为“any”或值(奇、偶)数与页面数相匹配,那么odd-or-even[奇、偶数]为true[真]
  • 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"
    如果值为"not-blank[无空白页]"并且页面包含由<fo:flow>子对象产生的域;或者值为"blank[空白]"并且页面不包含来自于<fo:flow>的域;或者值为"any"。只要满足上述三者之一,“blank-or-not-blank ”的值就为true[真]

Syntax
语法

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

Properties
属性

属性
blank-or-not-blank
master-reference
odd-or-even
page-postion

评论 (0) All