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
 

-------------------------------------------------- 
This electronic message may contain confidential, proprietary or 
privileged informations. It is intended for the use of the named 
recipient. Electronic messages are not secure or error-free, and may 
contain viruses; the ILO is not liable in any such event. 
-------------------------------------------------- 
Ce message électronique peut contenir des informations confidentielles, 
ou spécialement protégées, à la seule intention du destinataire. Les 
messages électroniques ne sont pas sécurisés ou à l'abri d'une erreur 
et peuvent contenir des virus; le BIT ne peut être tenu responsable de 
tels événements. 
-------------------------------------------------- 
Este mensaje electrónico puede contener informatión confidencial o 
especialmente protegida. Está dirigido para el uso exclusivo del 
destinatorio indicado. Los mensajes electrónicos no son seguros o libre 
de error, y pueden contener virus; la OIT no se responsabiliza en 
cualquiera de estos casos. 
---------------------------------------------------
 

Reply via email to