You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Valentin O. Kluchnick" <va...@module.ru> on 2000/03/14 22:01:52 UTC

Help with XML -> PDF : Tables

Hi All!
I'm trying make tables in PDF.

This is example.

****************** Example BEGIN *******************
<?xml version="1.0"?>

<?cocoon-format type="text/xslfo"?>

<fo:root xmlns:fo="http://www.w3.org/XSL/Format/1.0">
 <fo:layout-master-set>
  <fo:simple-page-master page-master-name="one" margin-left="100pt"
margin-right="100pt">
   <fo:region-body margin-top="50pt" margin-bottom="50pt"/>
  </fo:simple-page-master>
 </fo:layout-master-set>

 <fo:page-sequence>
  <fo:sequence-specification>
   <fo:sequence-specifier-repeating page-master-first="one"
page-master-repeating="one"/>
  </fo:sequence-specification>

  <fo:flow font-size="14pt" line-height="14pt">

     <fo:table-and-caption>
      <fo:table-caption>
        Test
      </fo:table-caption>
      <fo:table border-after-width="2pt" border-before-width="2pt">
         <fo:table-body border-before-width="2pt">
           <fo:table-row>

             <fo:table-cell>
               This is item one
             </fo:table-cell>

             <fo:table-cell>
               This is item two
             </fo:table-cell>
 
           </fo:table-row>
         </fo:table-body>
      </fo:table>
     </fo:table-and-caption>

  </fo:flow>
 

 </fo:page-sequence>

</fo:root>
****************** Example END *******************

But I see just caption ("Test") and Items ("This is item one", "This is
item two") like set of text block.
That's wrong?!
And give me plz example of table with border.
WBR!
Valkl.