2013-03-21 72 views

回答

1

一個完整的XSL-FO樣品:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> 
       <fo:layout-master-set> 
        <fo:simple-page-master page-height="10cm" page-width="5cm" 
          master-name="format1"> 
         <fo:region-body /> 
        </fo:simple-page-master> 
        <fo:simple-page-master page-height="5cm" page-width="10cm" 
          master-name="format2"> 
         <fo:region-body/> 
        </fo:simple-page-master> 
       </fo:layout-master-set> 
       <fo:page-sequence master-reference="format1"> 
        <fo:flow flow-name="xsl-region-body"> 
         <fo:block>Test format 1</fo:block> 
        </fo:flow> 
       </fo:page-sequence> 
       <fo:page-sequence master-reference="format2"> 
        <fo:flow flow-name="xsl-region-body"> 
         <fo:block>Test format 2</fo:block> 
        </fo:flow> 
       </fo:page-sequence> 
</fo:root> 
相關問題