Hi All,

I am trying to format a table with cells spanning as shown below:

AAB
AAC
DEC

To do this, I am using attached .fo file (it is actually a stripped-down 
DocBook-generated table). The essential piece is:

<fo:table>
 <fo:table-body>
  <fo:table-row>
   <fo:table-cell number-rows-spanned="2" number-columns-spanned="2">
    <fo:block>A</fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block>B</fo:block>
   </fo:table-cell>
  </fo:table-row>
  <fo:table-row>
   <fo:table-cell number-rows-spanned="2">
    <fo:block>C</fo:block>
   </fo:table-cell>
  </fo:table-row>
  <fo:table-row>
   <fo:table-cell>
    <fo:block>D</fo:block>
   </fo:table-cell>
   <fo:table-cell>
    <fo:block>E</fo:block>
   </fo:table-cell>
  </fo:table-row>
 </fo:table-body>
</fo:table>

However, it gets rendered like this:

AAB
DEC

(there is no row that includes both A-cell and C-cell). See the attached PDF. 
It looks like a bug; could somebody confirm and suggest a fix/workaround?

PS. Using FOP 0.95, Ubuntu 10.04.

Regards,
Alexey.

Attachment: 1.pdf
Description: Adobe PDF document

<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
 <fo:layout-master-set>
  <fo:simple-page-master master-name="body" page-width="5in"
    page-height="5in" margin="0.5in">
   <fo:region-body/>
  </fo:simple-page-master>
 </fo:layout-master-set>
 <fo:page-sequence master-reference="body">
  <fo:flow flow-name="xsl-region-body">
   <fo:block>
    <fo:table table-layout="fixed" width="100%"
      border-top="solid black 0.5pt" border-left="solid black 0.5pt">
     <fo:table-body>
      <fo:table-row>
       <fo:table-cell border-bottom="solid black 0.5pt"
	 border-right="solid black 0.5pt"
	 number-rows-spanned="2"
	 number-columns-spanned="2">
	<fo:block>A</fo:block>
       </fo:table-cell>
       <fo:table-cell border-bottom="solid black 0.5pt"
	 border-right="solid black 0.5pt">
	<fo:block>B</fo:block>
       </fo:table-cell>
      </fo:table-row>
      <fo:table-row>
       <fo:table-cell border-bottom="solid black 0.5pt"
	 border-right="solid black 0.5pt" number-rows-spanned="2">
	<fo:block>C</fo:block>
       </fo:table-cell>
      </fo:table-row>
      <fo:table-row>
       <fo:table-cell border-bottom="solid black 0.5pt"
	 border-right="solid black 0.5pt">
	<fo:block>D</fo:block>
       </fo:table-cell>
       <fo:table-cell border-bottom="solid black 0.5pt"
	 border-right="solid black 0.5pt">
	<fo:block>E</fo:block>
       </fo:table-cell>
      </fo:table-row>
     </fo:table-body>
    </fo:table>
   </fo:block>
  </fo:flow>
 </fo:page-sequence>
</fo:root>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to