ZVON > References > Zvon Example Repository
Example repository: index | categories | search

All > XSL FO > Keeps and breaks > lbfobreakafter4.fo


Title: lbfobreakafter4.fo
Origin: NIST XSL test suite

FO file
ElementsAttributes
fo:block
fo:flowflow-name |
fo:layout-master-set
fo:list-blockbackground-color | break-after |
fo:list-item
fo:list-item-body
fo:list-item-label
fo:page-sequencemaster-name |
fo:region-bodymargin-bottom | margin-left | margin-right | margin-top |
fo:root
fo:simple-page-mastermargin-bottom | margin-left | margin-right | margin-top | master-name | page-height | page-width |

Warning! These examples are related to XSL FO Working Draft, you need to use attribute "page-sequence/@master-reference" instead of "page-sequence/@master-name".


Source

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" >
     <fo:layout-master-set>
          <fo:simple-page-master page-height="11in" page-width="8.5in" margin-left="1.0in" margin-top="0.2in" margin-bottom="1.0in" margin-right="1.0in" master-name="test-page-master">
               <fo:region-body margin-left="1.0in" margin-top="0.2in" margin-right="1.0in" margin-bottom="1.0in"/>
          </fo:simple-page-master>
     </fo:layout-master-set>
     <fo:page-sequence master-name="test-page-master">
          <fo:flow flow-name="xsl-region-body">
               <fo:list-block background-color="red" break-after="odd-page">
                    <fo:list-item>
                         <fo:list-item-label>
                              <fo:block/>
                         </fo:list-item-label>
                         <fo:list-item-body>
                              <fo:block>This page generate three pages (page number two should be empty). This text should appear on page number one.</fo:block>
                         </fo:list-item-body>
                    </fo:list-item>
               </fo:list-block>
               <fo:list-block background-color="red">
                    <fo:list-item>
                         <fo:list-item-label>
                              <fo:block/>
                         </fo:list-item-label>
                         <fo:list-item-body>
                              <fo:block>This text should appear on page number three.</fo:block>
                         </fo:list-item-body>
                    </fo:list-item>
               </fo:list-block>
          </fo:flow>
     </fo:page-sequence>
</fo:root>



Sponsored links: conference call service, VoIP Internettelefonie, DSL, SDSL, ADSL, answering service