logo       

how to avoid page breaks between two block: msg#00008

Subject: how to avoid page breaks between two block
Hello
I'm facing a problem trying to display several tables with a Title before
each table.
I want the page to display each sequence "title / table" without a page
break. That means the page break should always occurs before the Title, if
several pages are needed.

I wrote the following template, but there is still an innapropriate break
between a title and the following table.
Any advice would be greatly appreciated.


<xsl:for-each select="ltableau/tableau">
   <!-- first the title-->
   <fo:block space-before="15pt" padding-after="15pt"
keep-with-next="always">
    <fo:inline font-weight="bold" font-size="100%" >
     <xsl:value-of select="entetetableau/etiquette/valeur"/>
    </fo:inline>
   </fo:block>
   <!-- then the table-->
   <fo:table border="0.5pt solid black" text-align="center"
keep-with-previous="always" space-after="10pt">
   <fo:table-body>
     <xsl:for-each select="lcase">
      <fo:table-row border="0.3pt solid black" keep-with-previous="always">
       <xsl:for-each select="case">
        <fo:table-cell border="0.3pt solid black">
         <fo:block font-size="65%">
          <xsl:value-of select="valeur"/>
         </fo:block>
        </fo:table-cell>
       </xsl:for-each>
      </fo:table-row>
     </xsl:for-each>
    </fo:table-body>
   </fo:table>
</xsl:for-each>
etc

Thanks in advance
Flo

PS : I'm using FOP to transform XML to pdf




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe