xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Ben.Temper...@Marlborough-Stirling.com>
Subject Unexpected page splitting
Date Thu, 06 Feb 2003 15:54:20 GMT
I've recently just started using FOP and am having great difficulty
understanding how margins and space-after influence each other.
It's difficult to explain what the problem is without knowing what may be
causing it, so I have included an extract from the .fo document

For some reason the final block after the table and before the page break
gets split over 2 pages, despite the fact that there is very large amounts
of space available. This does not occur if the 'space-after' and
'space-before' attributes are removed from the <fo:block>s within the
<fo:table-cell>s. 

So my questions are
(1) why does the page break occur despite the vast amounts of room remaining
on the page?
(2) is this the correct way to add padding to table-cells and if not, what
is?

Many thanks,

Ben



Here is an extract from the .fo file:

///////////// BEGIN EXTRACT  ///////////////////////////////////////

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master background-image="draft.jpg"
margin-right="1.2cm" margin-left="2cm" margin-bottom="2cm" margin-top="2cm"
page-width="21cm" page-height="29.7cm" page-master-name="main">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence>
		<fo:sequence-specification>
			<fo:sequence-specifier-alternating
page-master-even="main" page-master-odd="main" page-master-first="main"/>
		</fo:sequence-specification>
		<fo:flow>
<fo:block padding-bottom="10pt" padding-top="10pt" padding-right="10pt"
padding-left="10pt" font-weight="bold" text-align="center"
line-height="(@Size}" font-family="Arial" font-size="14pt"
space-after.optimum="15pt">PLANNING AREAS</fo:block>
			<fo:block font-weight="Normal" text-align="justify"
space-after.optimum="15pt" line-height="15pt" font-family="Arial"
font-size="12pt">Detailed below are your responses to the planning areas
which were available for discussion:
            </fo:block>
			<fo:block space-after="15pt">
				<fo:table>
					<fo:table-column
column-width="52.5mm"/>
					<fo:table-column
column-width="37.5mm"/>
					<fo:table-body>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" text-align="start" font-family="Arial"
font-weight="bold">NEED AREA</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" text-align="start" font-family="Arial"
font-weight="bold">CLIENT RESPONSE</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Mortgages &amp; Loans</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Protection - Death</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Protection - Critical Illness</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Protection -
Illness/Disability</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Protection - Redundancy</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">IHT Planning</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Retirement</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">General Savings &amp;
Investments</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Targeted Savings &amp;
Investments</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Agreed for Discussion</fo:block>
							</fo:table-cell>
						</fo:table-row>
						<fo:table-row>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">OMO</fo:block>
							</fo:table-cell>
							<fo:table-cell
border="0.5pt solid black">
								<fo:block
space-after="3pt" space-before="3pt" font-size="10pt" text-align="start"
font-family="Arial" font-weight="">Not Applicable</fo:block>
							</fo:table-cell>
						</fo:table-row>
					</fo:table-body>
				</fo:table>
			</fo:block>
			<fo:block font-weight="Normal" text-align="justify"
space-after.optimum="15pt" line-height="15pt" font-family="Arial"
font-size="12pt">Where a * is shown, this means you did not wish to discuss
the area now or in the future.
            </fo:block>
			<fo:block font-weight="Normal" text-align="justify"
space-after.optimum="15pt" line-height="15pt" font-family="Arial"
font-size="12pt">John Smith - I recommended that a discussion on life cover
should form part of this review.  However, you did not wish to discuss this
need area at the present time.</fo:block>
			<fo:block font-weight="Normal" text-align="justify"
space-after.optimum="15pt" line-height="15pt" font-family="Arial"
font-size="12pt">My analysis highlighted that you did not have an
inheritance tax liability and therefore no further action was
required.</fo:block>
			<fo:block font-weight="Normal" text-align="justify"
space-after.optimum="15pt" line-height="15pt" font-family="Arial"
font-size="12pt">The only area of financial planning you wished to discuss
was the Open Market Option available on your [:s Insert free text to detail
name and type of plan]. I recommended that we complete a full financial
review but you did not wish to do so.
            </fo:block>
			<fo:block break-before="page"/>


....................

//////////////////END EXTRACT /////////////////////////////////////




______________________________________________________________

CONFIDENTIALITY NOTICE
This communication and the information it contains is intended for the person or organisation
to whom it is addressed.  Its contents are confidential and may be protected in law.  Unauthorised
use, copying or disclosure of any of it may be unlawful.  If you are not the intended recipient,
please contact us immediately.

The contents of any attachments in this e-mail may contain software viruses, which could damage
your own computer system.  While Marlborough Stirling has taken every reasonable precaution
to minimise this risk, we cannot accept liability for any damage which you sustain as a result
of software viruses.  You should carry out your own virus checking procedure before opening
any attachment.

Marlborough Stirling plc, Registered No. 3008820,
Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.com

The following companies are subsidiaries of Marlborough Stirling plc and are registered in
England and Wales at the above address:
Marlborough Stirling PLC, Registered No. 3008820
The Marlborough Stirling Group PLC, Registered No. 1855353
Marlborough Stirling Administration Limited, Registered No. 2341195
Metgem Limited, Registered No. 02341195


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


Mime
View raw message