home *** CD-ROM | disk | FTP | other *** search
/ MacFormat UK 160 - Disc 2 / MF_UK_160_2.iso / pc / DiscContent / Trials / oxygen / samples / fo / Miscellaneous / table.fo < prev   
Encoding:
Extensible Markup Language  |  2005-07-21  |  2.1 KB  |  51 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2.  
  3. <!-- Example from: http://www.renderx.net
  4.     Copyright © 2004 RenderX, Inc.-->
  5.  
  6. <fo:root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7.  xsi:schemaLocation="http://www.w3.org/1999/XSL/Format ../../../frameworks/fo/xsd/fo.xsd"
  8.  xmlns:fo="http://www.w3.org/1999/XSL/Format">
  9.   <fo:layout-master-set>
  10.     <fo:simple-page-master master-name="my-page">
  11.       <fo:region-body margin="1in"/>
  12.     </fo:simple-page-master>
  13.   </fo:layout-master-set>
  14.   <fo:page-sequence master-reference="my-page">
  15.     <fo:flow flow-name="xsl-region-body">
  16.       <fo:table border="0.5pt solid black" text-align="center" border-spacing="3pt">
  17.         <fo:table-column column-width="1in"/>
  18.         <fo:table-column column-width="0.5in" number-columns-repeated="2"/>
  19.         <fo:table-header>
  20.           <fo:table-row>
  21.             <fo:table-cell padding="6pt" border="1pt solid blue" background-color="silver" number-columns-spanned="3">
  22.               <fo:block text-align="center" font-weight="bold"> Header </fo:block>
  23.             </fo:table-cell>
  24.           </fo:table-row>
  25.         </fo:table-header>
  26.         <fo:table-body>
  27.           <fo:table-row>
  28.             <fo:table-cell padding="6pt" border="1pt solid blue" background-color="silver" number-rows-spanned="2">
  29.               <fo:block text-align="end" font-weight="bold"> Items: </fo:block>
  30.             </fo:table-cell>
  31.             <fo:table-cell padding="6pt" border="0.5pt solid black">
  32.               <fo:block> 1 : 1 </fo:block>
  33.             </fo:table-cell>
  34.             <fo:table-cell padding="6pt" border="0.5pt solid black">
  35.               <fo:block> 1 : 2 </fo:block>
  36.             </fo:table-cell>
  37.           </fo:table-row>
  38.           <fo:table-row>
  39.             <fo:table-cell padding="6pt" border="0.5pt solid black">
  40.               <fo:block> 2 : 1 </fo:block>
  41.             </fo:table-cell>
  42.             <fo:table-cell padding="6pt" border="0.5pt solid black">
  43.               <fo:block> 2 : 2 </fo:block>
  44.             </fo:table-cell>
  45.           </fo:table-row>
  46.         </fo:table-body>
  47.       </fo:table>
  48.     </fo:flow>
  49.   </fo:page-sequence>
  50. </fo:root>
  51.