You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Luis Ferro <lf...@teladigital.pt> on 2006/08/23 12:07:59 UTC

keep-with-next (fop thrunk-svn 08Ago2006)

I've the following code somewhere in a page:

    	<fo:table keep-with-next="always" table-layout="fixed" width="144mm">
    		<fo:table-column column-number="1" column-width="10mm"/>
    		<fo:table-column column-number="2" column-width="2.5mm"/>
    		<fo:table-column column-number="3" column-width="6mm"/>
    		<fo:table-column column-number="4" column-width="125.5mm"/>
    		<fo:table-body>
    			<fo:table-row>
    				<fo:table-cell>
    					<fo:block></fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block></fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block font-size='7pt' font-weight='bold'>09</fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block font-size='7pt'
font-weight='bold'><fo:block>Miconazol</fo:block>

 </fo:block>
    				</fo:table-cell>
    			</fo:table-row>
    		</fo:table-body>
    	</fo:table>
    	<fo:table keep-with-previous="always" table-layout="fixed"
width="144mm">
    		<fo:table-column column-number="1" column-width="10mm"/>
    		<fo:table-column column-number="2" column-width="2.5mm"/>
    		<fo:table-column column-number="3" column-width="6mm"/>
    		<fo:table-column column-number="4" column-width="125.5mm"/>
    		<fo:table-body>
    			<fo:table-row>
    				<fo:table-cell>
    					<fo:block></fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block></fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block></fo:block>
    				</fo:table-cell>
    				<fo:table-cell>
    					<fo:block font-size='7pt'>    					   
<fo:list-block><fo:list-item><fo:list-item-label><fo:block>&#x2022;</fo:block></fo:list-item-label><fo:list-item-body
start-indent='2mm'><fo:block><fo:block>Daktarin (Janssen-Cilag) 30g Gel Oral
20mg/g</fo:block>

        					</fo:block></fo:list-item-body></fo:list-item></fo:list-block>
    					</fo:block>
    				</fo:table-cell>
    			</fo:table-row>
    		</fo:table-body>
    	</fo:table>


What i was supposed to expect would be that the two tables to stick together
in the same page, but the actual results are that they are broken apart one
in each page...

Is there a solution around it?

Thanx in advance,
lferro
-- 
View this message in context: http://www.nabble.com/keep-with-next-%28fop-thrunk-svn-08Ago2006%29-tf2151524.html#a5941547
Sent from the FOP - Users forum at Nabble.com.


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


Re: keep-with-next (fop thrunk-svn 08Ago2006)

Posted by Chris Bowditch <bo...@hotmail.com>.
Luis Ferro wrote:
> I've the following code somewhere in a page:
> 
>     	<fo:table keep-with-next="always" table-layout="fixed" width="144mm">

<snip/>

>     	<fo:table keep-with-previous="always" table-layout="fixed"
> width="144mm">

<snip/>

> 
> What i was supposed to expect would be that the two tables to stick together
> in the same page, but the actual results are that they are broken apart one
> in each page...

keep-with-next tells the formatter to make the 2 objects start on the 
same page as the first. However it does not forbid the formatter from 
breaking either object mid way. So in fact the 2nd table will have to 
start on the first page, but all its rows could still end up on page 2 
because the formatter is allowed to break the tables in between rows. To 
get the results you want, you will need to add keep-together="always" to 
both tables. Make sure the length of both tables isnt longer than 1 page 
though.

Chris




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


Re: keep-with-next (fop thrunk-svn 08Ago2006)

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Aug 23, 2006, at 12:07, Luis Ferro wrote:

Hi,

> I've the following code somewhere in a page:
> <snip />
>
> What i was supposed to expect would be that the two tables to stick  
> together
> in the same page, but the actual results are that they are broken  
> apart one
> in each page...
>
> Is there a solution around it?

Not sure if it will work, but try putting the two tables together in  
one fo:block, and use keep-together on the block.


HTH!

Andreas


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