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="."/> </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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
