Appendix F. Examples for Chapter 10

Example F-1. Initial layout

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <!-- spm for first 3 pages --> [1] <fo:simple-page-master master-name="first3" page-height="29.7cm" page-width="21cm" margin-top="1in" margin-bottom="2in" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body padding-start="1cm" padding-end="1cm" margin-top="0.6in" margin-bottom="0.6in" margin-left="0.7in" margin-right="0.5in"/> </fo:simple-page-master> [2] <!-- No headers or footers required --> <!-- spm for preface and toc --> <fo:simple-page-master master-name="prefAndToc" page-height="29.7cm" page-width="21cm" margin-top="1in" margin-bottom="1.5in" margin-left="2.5cm" margin-right="2.5cm"> <fo:region-body padding-start="1cm" padding-end="1cm" margin-top="0.6in" margin-bottom="0.6in" margin-left="0.7in" margin-right="0.5in"/> <fo:region-before extent ="0.5in"/> <!-- Height of the region --> [3] <fo:region-after extent ="0.5in"/> <!-- Height of region --> </fo:simple-page-master> <!-- spm for main chapters, odd pages --> [4] <fo:simple-page-master master-name="chapsOdd" page-height="29.7cm" page-width="21cm" margin-top="1in" margin-bottom="0.7in" [5] margin-left="1.5cm" margin-right="2.5cm"> <fo:region-body [6] border-color="red" border-style="solid" border-width="1pt" padding-end="3mm" padding-start="1mm" margin-bottom="0.5in" margin-top="1in" margin-left="15mm" margin-right="15mm"/> <fo:region-before border-color="red" border-style="solid" ...

Get XSL-FO now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.