Thanks for the test document. FOP 0.95 seems to do what you want.

Instead of specifying keep-together="always" and keep-with-previous="always"
on every row, I'd just set keep-together.within-column="always" on the
fo:table.

On 21.08.2008 11:00:31 Christophe Vittorelli wrote:
> Thanks a lot for you quick answer.
> Please find attached the fo file + the pdf (as you can see, the 2nd table is
> cut, and I would like that all the table goes on the next page).
>  
> In the same time, I will see to upgrade to 0.95.
>  
> Thanks again,
> Chris
> 
> >>> Jeremias Maerki <[EMAIL PROTECTED]> 21.08.2008 10:13 >>>
> FOP 0.94 had a bug in table layout that might be manifesting here. But I
> can't be sure without a full FO document to test with. I strongly
> recommmend to upgrade to FOP 0.95 and to replace keep-together="always"
> by keep-together.within-column="always" to avoid side-effects with the
> newly introduced support for keep-together.within-line.
> 
> On 21.08.2008 09:00:10 Christophe Vittorelli wrote:
> > I am using fop 0.94 under Linux and I have a problem to keep on a same page
> a
> > table —> I would like that when a table doesn't fit in a page, it goes on
> the
> > next page witout cutting the table.
> >  
> > I use the following:
> >  
> >  <xsl:template match="table2">
> >   <fo:table table-layout="fixed" width="100%">
> >    <fo:table-column column-number="1" column-width="2.2cm"/>
> >    <fo:table-column column-number="2" column-width="1.6cm"/
> >    <fo:table-body>
> >     <xsl:apply-templates/>
> >    </fo:table-body>
> >   </fo:table>
> >  </xsl:template>
> >  
> >  <xsl:template match="subject2">
> >   <fo:table-row>
> >    <fo:table-cell column-number="1"
> > number-columns-spanned="2"><fo:block><xsl:value-of
> > select="."/>&#160;</fo:block></fo:table-cell>
> >   </fo:table-row>
> >  </xsl:template>
> >   
> >  <xsl:template match="tetiere2">
> >   <fo:table-row  keep-with-previous.within-page="always"
> keep-together="always"
> > background-color="#D3D3D3">
> >     <fo:table-cell column-number="1"><fo:block><xsl:value-of
> > select="classif1"/></fo:block></fo:table-cell>
> >     <fo:table-cell column-number="2"><fo:block><xsl:value-of
> > select="classif2"/></fo:block></fo:table-cell>
> >   </fo:table-row>
> >   <fo:table-row  keep-with-previous.within-page="always"
> > keep-together="always">
> >     <fo:table-cell column-number="1"><fo:block><xsl:value-of
> > select="other1"/></fo:block></fo:table-cell>
> >     <fo:table-cell column-number="2"><fo:block><xsl:value-of
> > select="other2"/></fo:block></fo:table-cell> 
> >   </fo:table-row>
> >  </xsl:template>
> >  
> >  
> > I saw in the mailing list that visibly it should work with 0.95. 
> > But we use here 0.94 and it seems not working. Perhaps i miss something ?
> >  
> > Thanks a lot for your help.
> >  
> > Chris
> >  
> 
> 
> 
> Jeremias Maerki
> 


Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to