Below is an XSL-FO file which I would like to diplay in PDF format. I can
process it through FOP, and part of it works, but not the table. According
to my references, that's how a table should look, but it just won't show up,
whatever I tried. 
I did insert some test lines, everything shows up, except the table and its
contents aren't displayed at all. 

Is there anything with my  XSL-FO below? Thanks a lot for your help, I did
spend a lot of time, I'm just out of ideas rigth now...

Thanks

First the code sample which is causing problems: (scroll down to see the
entire code)


.......(some code omitted)
<fo:flow flow-name="xsl-region-body"> 
<fo:block>This text is for testing purposes only</fo:block> 
 <fo:table border-width="1pt" border-color="black" border-style="solid"
border-collapse="separate"> 
<fo:table-columns column-width="6cm" /> 
<fo:table-columns column-width="16pt" /> 
 <fo:table-header> 
 <fo:table-row color="black" background-color="red"> 
 <fo:table-cell> 
<fo:block>One test cell</fo:block> 
</fo:table-cell> 
</fo:table-row> 
</fo:table-header> 
 <fo:table-body> 
 <fo:table-row color="black" background-color="white"> 
 <fo:table-cell> 
<fo:block>One test cell</fo:block> 
</fo:table-cell> 
 <fo:table-cell> 
<fo:block>another test cell</fo:block> 
</fo:table-cell> 
</fo:table-row> 
</fo:table-body> 
</fo:table> 
</fo:flow> 
.......(some code omitted)
</fo:page-sequence> 
</fo:root>



and here the entire code:

 <?xml version="1.0" encoding="iso-8859-1" ?> 
 <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 <fo:layout-master-set>
 <fo:simple-page-master margin-right="2.5cm" margin-left="2.5cm"
margin-bottom="2cm" margin-top="1cm" page-width="21cm" page-height="29.7cm"
master-name="premier">
  <fo:region-body margin-bottom="1cm" margin-top="3cm" /> 
  </fo:simple-page-master>
 <fo:simple-page-master margin-right="2.5cm" margin-left="2.5cm"
margin-bottom="2cm" margin-top="1cm" page-width="21cm" page-height="29.7cm"
master-name="page">
  <fo:region-before extent="3cm" /> 
  <fo:region-body margin-bottom="1cm" margin-top="3cm" /> 
  <fo:region-after extent="1cm" /> 
  </fo:simple-page-master>
 <fo:page-sequence-master master-name="titre">
 <fo:repeatable-page-master-alternatives>
  <fo:conditional-page-master-reference position="first"
master-reference="premier" /> 
  </fo:repeatable-page-master-alternatives>
  </fo:page-sequence-master>
 <fo:page-sequence-master master-name="all">
 <fo:repeatable-page-master-alternatives>
  <fo:conditional-page-master-reference position="rest"
master-reference="page" /> 
  </fo:repeatable-page-master-alternatives>
  </fo:page-sequence-master>
  </fo:layout-master-set>
 <fo:page-sequence master-reference="titre">
 <fo:flow flow-name="xsl-region-body">
  <fo:block line-height="36pt" font-family="serif" font-size="24pt"
text-align="center">PV: Pages de titre</fo:block> 
  </fo:flow>
  </fo:page-sequence>
 <fo:page-sequence force-page-count="end-on-odd" initial-page-number="1"
master-reference="all">
  <fo:title>Un Titre</fo:title> 
 <fo:static-content flow-name="xsl-region-before">
  <fo:block line-height="12pt" font-family="serif" font-size="8pt"
text-align="center">entete</fo:block> 
  </fo:static-content>
 <fo:static-content flow-name="xsl-region-after">
 <fo:block line-height="12pt" font-family="serif" font-size="8pt"
text-align="right">
  Page 
  <fo:page-number /> 
  </fo:block>
  <fo:block line-height="12pt" font-family="serif" font-size="8pt"
text-align="left">Définitif</fo:block> 
  </fo:static-content>
 <fo:flow flow-name="xsl-region-body">
  <fo:block>This text is for testing purposes only</fo:block> 
 <fo:table border-width="1pt" border-color="black" border-style="solid"
border-collapse="separate">
  <fo:table-columns column-width="6cm" /> 
  <fo:table-columns column-width="16pt" /> 
 <fo:table-header>
 <fo:table-row color="black" background-color="red">
 <fo:table-cell>
  <fo:block>One test cell</fo:block> 
  </fo:table-cell>
  </fo:table-row>
  </fo:table-header>
 <fo:table-body>
 <fo:table-row color="black" background-color="white">
 <fo:table-cell>
  <fo:block>One test cell</fo:block> 
  </fo:table-cell>
 <fo:table-cell>
  <fo:block>another test cell</fo:block> 
  </fo:table-cell>
  </fo:table-row>
  </fo:table-body>
  </fo:table>
  </fo:flow>
  </fo:page-sequence>
  </fo:root>

Reply via email to