Advertisement
Guest User

Untitled

a guest
Apr 21st, 2011
210
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.52 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  3.     <fo:layout-master-set>
  4.         <fo:simple-page-master page-height="242mm" page-width="165mm" master-name="blank">
  5.             <fo:region-body/>
  6.         </fo:simple-page-master>
  7.         <fo:simple-page-master page-height="242mm" page-width="165mm" master-name="main.odd.master">
  8.             <fo:region-body margin-bottom="17mm" margin-right="42mm" margin-left="20mm" margin-top="25mm"/>
  9.             <fo:region-after extent="20mm" region-name="main.odd.footer"/>
  10.         </fo:simple-page-master>
  11.         <fo:simple-page-master page-height="242mm" page-width="165mm" master-name="main.even.master">
  12.             <fo:region-body margin-bottom="17mm" margin-right="20mm" margin-left="42mm" margin-top="25mm"/>
  13.             <fo:region-after extent="20mm" region-name="main.even.footer"/>
  14.         </fo:simple-page-master>
  15.         <fo:page-sequence-master master-name="appendix.master">
  16.             <fo:repeatable-page-master-alternatives>
  17.                 <fo:conditional-page-master-reference blank-or-not-blank="blank" master-reference="blank"/>
  18.                 <fo:conditional-page-master-reference odd-or-even="odd" master-reference="main.odd.master"/>
  19.                 <fo:conditional-page-master-reference odd-or-even="even" master-reference="main.even.master"/>
  20.             </fo:repeatable-page-master-alternatives>
  21.         </fo:page-sequence-master>
  22.     </fo:layout-master-set>
  23.     <fo:page-sequence master-reference="appendix.master">
  24.         <fo:static-content flow-name="main.odd.footer">
  25.             <fo:block margin-top="9mm" margin-right="9mm" text-align="right" font-family="Times New Roman" font-size="9.5pt">
  26.                 <fo:page-number/>
  27.             </fo:block>
  28.         </fo:static-content>
  29.         <fo:static-content flow-name="main.even.footer">
  30.             <fo:block margin-top="9mm" margin-left="9mm" text-align="left" font-family="Times New Roman" font-size="9.5pt">
  31.                 <fo:page-number/>
  32.             </fo:block>
  33.         </fo:static-content>
  34.         <fo:flow flow-name="xsl-region-body">
  35.             <fo:block break-before="odd-page">
  36.                 <fo:marker marker-class-name="location.marker">Apx 1</fo:marker>
  37.                 <fo:block font-family="Times New Roman" font-size="10.5pt" line-height="11.6pt" keep-with-next="always" keep-together.within-column="always" space-after="7.8pt" space-before="23.2pt" id="N10424" font-weight="bold">Appendix 1</fo:block>
  38.                 <fo:block font-family="Times New Roman" font-size="9.5pt" line-height="11.6pt" orphans="3" widows="3" text-align="justify">This page is on page 1, fine.</fo:block>
  39.             </fo:block>
  40.         </fo:flow>
  41.     </fo:page-sequence>
  42.     <fo:page-sequence master-reference="appendix.master">
  43.         <fo:static-content flow-name="main.odd.footer">
  44.             <fo:block margin-top="9mm" margin-right="9mm" text-align="right" font-family="Times New Roman" font-size="9.5pt">
  45.                 <fo:page-number/>
  46.             </fo:block>
  47.         </fo:static-content>
  48.         <fo:static-content flow-name="main.even.footer">
  49.             <fo:block margin-top="9mm" margin-left="9mm" text-align="left" font-family="Times New Roman" font-size="9.5pt">
  50.                 <fo:page-number/>
  51.             </fo:block>
  52.         </fo:static-content>
  53.         <fo:flow flow-name="xsl-region-body">
  54.             <fo:block break-before="odd-page">
  55.                 <fo:marker marker-class-name="location.marker">Apx 2</fo:marker>
  56.                 <fo:block font-family="Times New Roman" font-size="10.5pt" line-height="11.6pt" keep-with-next="always" keep-together.within-column="always" space-after="7.8pt" space-before="23.2pt" id="N10430" font-weight="bold">Appendix 2</fo:block>
  57.                 <fo:block font-family="Times New Roman" font-size="9.5pt" line-height="11.6pt" orphans="3" widows="3" text-align="justify">The extra page inserted before this one (page 2) is supposed to use the "blank" page master, but instead it uses the "main.even.master" one, which leads to it having a page number at the bottom.</fo:block>
  58.             </fo:block>
  59.             <fo:block break-before="odd-page">
  60.                 <fo:block font-family="Times New Roman" font-size="9.5pt" line-height="11.6pt" orphans="3" widows="3" text-align="justify">This block is in the SAME sequence/flow as the previous one and also has an odd-page break before it, and it DOES get a proper blank page inserted before it</fo:block>
  61.             </fo:block>
  62.         </fo:flow>
  63.     </fo:page-sequence>
  64. </fo:root>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement