xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puppala, Kumar (LNG-CON)" <kumar.pupp...@LexisNexis.com>
Subject RE: fo:table-row issues
Date Mon, 04 Feb 2008 17:03:01 GMT
Thanks for the quick reply. I tried both the suggestions and am still
having issues. Listed below are my findings:


What if you add two empty cells, or simply leave out the empty row?

If I add two empty cells, the renderer complains that the number of
cells in the row overflows. The error message is as shown below:


"org.apache.fop.fo.ValidationException: Error(67/15): column-number or
number of cells in the row overflows the number of fo:table-column
specified for the table."


If I leave out the entire row, I see different results between fop 0.94
and fopTrunk. In fop 0.94, it renders but the borders on the top for the
two cells are missing (attaching the pdf doc). However, in fopTrunk, I
get the following validation exception: 

 "org.apache.fop.fo.ValidationException: A table-cell is spanning more
rows than available in its parent element."


Thanks !!


-----Original Message-----
From: Andreas Delmelle [mailto:andreas.delmelle@telenet.be] 
Sent: Monday, February 04, 2008 11:27 AM
To: fop-users@xmlgraphics.apache.org
Subject: Re: fo:table-row issues


On Feb 4, 2008, at 17:11, Puppala, Kumar (LNG-CON) wrote:




> I am trying to render a 2x2 table, the first row of which spans  

> across two cells and two rows as shown below:


> <fo:table table-layout="fixed" width="100%">

> <fo:table-column column-number="1" column-width="1.250000in"/>

> <fo:table-column column-number="2" column-width="1.250000in"/>

> <fo:table-body>

> <fo:table-row>

> <fo:table-cell border-style="solid" border-width="0.2mm"  

> padding="2pt" text-align="left" display-align="before" number- 

> columns-spanned="2" number-rows-spanned="2" >

> <fo:block>

> <fo:inline font-family="Times" color="#000000" font-weight="normal"  

> font-style="normal" text-decoration="no-underline" font-size="10pt"  

> >kangaroo

> </fo:inline>

> </fo:block>

> </fo:table-cell>

> </fo:table-row>

> <fo:table-row></fo:table-row>

> </fo:table-body>

> </fo:table>



> This markup used to produce the desired results in fop 0.20.5 but  

> gives me validation errors when using 0.94 and higher (trunk  

> included).



This (an empty row) is definitely not allowed by the XSL-FO Rec, so  

the validation error is more correct than 0.20.5, in any case.

The XSL content model of fo:table-row only allows for one or more  

fo:table-cell child nodes, possibly preceded by some fo:markers  

(although, IIC, FOP Trunk will ignore markers in a table-row).


> If I try to adhere to the validation rules and provide a table-cell  

> with an empty block for the second row, it complains that the  

> number of cells overflow the number specified for the table.


> From this analysis, it looks like if a table contains a row which  

> spans the entire columns and any additional rows, we run into  

> issues. Has anyone encountered this issue and are there any  

> workarounds for this?


What if you add two empty cells, or simply leave out the empty row?


The last option would definitely be preferable, as it saves resources  

(no construction of empty cells/blocks). If you can adapt the  

stylesheet, so it omits the offending row, that should work...








To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org

For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


View raw message