蓝色天空.知识 · 实践 · 创造
我的收藏
在线代码实验室

完整FO输入:alternating.fo

XMLWindows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3alternating.fo
alternating.fo1 行
<?xml version="1.0" encoding="UTF-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" font-family="Helvetica" font-size="11pt" line-height="15pt" ><fo:layout-master-set><fo:simple-page-master master-name="intro" page-width="210mm" page-height="297mm" margin="15mm"><fo:region-body margin-top="14mm" margin-left="5mm" margin-right="5mm"/><fo:region-before region-name="intro-header" extent="10mm"/></fo:simple-page-master><fo:simple-page-master master-name="left" page-width="210mm" page-height="297mm" margin="15mm"><fo:region-body margin-top="14mm" margin-left="20mm" margin-right="5mm"/><fo:region-before region-name="left-header" extent="10mm"/></fo:simple-page-master><fo:simple-page-master master-name="right" page-width="210mm" page-height="297mm" margin="15mm"><fo:region-body margin-top="14mm" margin-left="5mm" margin-right="20mm"/><fo:region-before region-name="right-header" extent="10mm"/></fo:simple-page-master><fo:page-sequence-master master-name="alternating"><fo:repeatable-page-master-alternatives><fo:conditional-page-master-reference master-reference="intro" page-position="first"/><fo:conditional-page-master-reference master-reference="left" odd-or-even="even"/><fo:conditional-page-master-reference master-reference="right" odd-or-even="odd"/></fo:repeatable-page-master-alternatives></fo:page-sequence-master></fo:layout-master-set><fo:page-sequence master-reference="alternating"><fo:static-content flow-name="intro-header"><fo:block >INTRO MASTER</fo:block></fo:static-content><fo:static-content flow-name="left-header"><fo:block >LEFT MASTER</fo:block></fo:static-content><fo:static-content flow-name="right-header"><fo:block >RIGHT MASTER</fo:block></fo:static-content><fo:flow flow-name="xsl-region-body"><fo:block font-size="18pt" color="#2563eb" space-after="8mm">MBSKY | mbsky.com</fo:block><fo:block >Page content 1</fo:block><fo:block break-before="page">Page content 2</fo:block><fo:block break-before="page">Page content 3</fo:block></fo:flow></fo:page-sequence></fo:root>
本例需在 Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3 中运行,请复制源码、保存文件或下载工程包后在本地执行验证。
运行说明与环境独立工程

运行环境:Windows / Temurin Java1.8.0_492 / Apache FOP2.12 / Python3.12 / pypdf6.10.0 / lxml6.1.3

入口文件:projects/fo-lab/fo/alternating.fo

预期结果与验证条件观察提示
  • INTRO MASTER;LEFT MASTER;RIGHT MASTER

请结合实际环境逐项观察。

附件与关联工程包下载

下载课程关联工程包:XSL-FO

课程关联工程包(登记关联13章) · 含当前章节或实例 · mbskycom202611a543.zip
SITE SEARCH

搜索教程、工具与资讯

热门搜索

JavaScriptJSON格式化正则表达式AI 编程AI 翻译AI导航专题标签
Esc 关闭

欢迎登录蓝色天空网

使用会员账号,继续你的学习