当前位置: 首页 > 网络学院 > XML相关教程 > XSL-FO > XSL-FO conditional-page-master-reference 对象

XSL-FO
XSL-FO 介绍
XSL-FO 文档
XSL-FO 区域
XSL-FO 输出
XSL-FO 流程
XSL-FO 页面
XSL-FO 块状区域
XSL-FO 列表
XSL-FO 表格
XSL-FO 和 XSLT
XSL-FO 软件
XSL-FO 参考资料

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 212 ::
收藏到网摘: n/a

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

登陆 | 还没注册?