Skip to main content

skip to main content

developerWorks  >  XML  >

Using XSL-FO to create printable documents

Portable database reporting using XML revisited

developerWorks

Return to article


Listing 3. Using FO to define a table with two columns

<fo:table>
  <fo:table-column column-width = "90mm" />
  <fo:table-column column-width = "90mm" />
  <fo:table-body>
    <fo:table-row>
      <fo:table-cell>
        <fo:block font-family="Arial" font-style="Regular">Australia</fo:block>
      </fo:table-cell>
      <fo:table-cell>
        <fo:block font-family="Arial" font-style="Regular">ADollar</fo:block>
      </fo:table-cell>
    </fo:table-row>
    <fo:table-row>
      <fo:table-cell>
        <fo:block font-family="Arial" font-style="Regular">Austria</fo:block>
      </fo:table-cell>
      <fo:table-cell>
        <fo:block font-family="Arial" font-style="Regular"\>Schilling</fo:block>
      </fo:table-cell>
    </fo:table-row>
  </fo:table-body>
</fo:table>


Return to article.