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 Frank Daly <fd...@cit.ie> on 2003/10/24 16:21:39 UTC

keep-with-next

Hi

I have a table which will list a number of clients.  There are 2 or 3
rows displaying the details of each client.  I want to keep these rows
together and have the following code fragment which I hoped would do
this

             <xsl:for-each select="client">
               <fo:table-row keep-with-next.within-page="always">
                 <fo:table-cell>
                   <fo:block>
                     <xsl:value-of select = "position()"/>
                   </fo:block>
                 </fo:table-cell>
                 <fo:table-cell>
                   <fo:block font-size="9pt" >
                     Name: <xsl:value-of select="first_names"/>&nbsp;
		       <xsl:value-of select="surname"/>
                   </fo:block>
                 </fo:table-cell>
                 <fo:table-cell>
                   <fo:block>1</fo:block>
                 </fo:table-cell>
                 <xsl:for-each select=" results">
                   <fo:table-cell>
                     <fo:block>
                       <xsl:value-of select="result"/>
                     </fo:block>
                   </fo:table-cell>
                 </xsl:for-each>
               </fo:table-row>
               <!-- row for second detail -->
               <fo:table-row keep-with-previous.within-page="always">

I searched google and I think the above should work.

Any advice would be much appreciated.

Frank 


-------------------Legal  Disclaimer---------------------------------------

The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.

----------------------------------------------------------------------------------------


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


RE: keep-with-next

Posted by Frank Daly <fd...@cit.ie>.
That worked.  Thanks very much, enjoy your weekend.

Frank

-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@yahoo.de] 
Sent: 24 October 2003 04:25
To: fop-user@xml.apache.org
Subject: Re: keep-with-next

Frank Daly wrote:
>                <fo:table-row keep-with-next.within-page="always">

Try keep-with-next="always". I think FOP ignores "within-page"
and uses "within-column" only.


J.Pietschmann


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


-------------------Legal
Disclaimer---------------------------------------

The above electronic mail transmission is confidential and intended only
for the person to whom it is addressed. Its contents may be protected by
legal and/or professional privilege. Should it be received by you in
error please contact the sender at the above quoted email address. Any
unauthorised form of reproduction of this message is strictly
prohibited. The Institute does not guarantee the security of any
information electronically transmitted and is not liable if the
information contained in this communication is not a proper and complete
record of the message as transmitted by the sender nor for any delay in
its receipt.

------------------------------------------------------------------------
----------------


-------------------Legal  Disclaimer---------------------------------------

The above electronic mail transmission is confidential and intended only for the person to whom it is addressed. Its contents may be protected by legal and/or professional privilege. Should it be received by you in error please contact the sender at the above quoted email address. Any unauthorised form of reproduction of this message is strictly prohibited. The Institute does not guarantee the security of any information electronically transmitted and is not liable if the information contained in this communication is not a proper and complete record of the message as transmitted by the sender nor for any delay in its receipt.

----------------------------------------------------------------------------------------


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


Re: keep-with-next

Posted by "J.Pietschmann" <j3...@yahoo.de>.
Frank Daly wrote:
>                <fo:table-row keep-with-next.within-page="always">

Try keep-with-next="always". I think FOP ignores "within-page"
and uses "within-column" only.


J.Pietschmann


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