W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2003

Blank page still printing at end of Document

From: Edmonstone, Christopher <Christopher.Edmonstone@accenturebizservicesbc.com>
Date: Thu, 20 Nov 2003 14:46:44 -0800
Message-ID: <76482E20B445EA4A8BC84435A468A56786E46B@edmm31.bchydro.bc.ca>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>

Many thanks to Web Maestro Clay for pointing me to the FAQ outlining the use
of the force-page-count="no-force"> tag to eliminate the extra blank page
printing.  However, after implementing the change the blank page still
prints.  Could this be a java problem?  Below is a snippet of the code.
Thanks again for your help, it is greatly appreciated

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:template match="GW_ESO_PRINT_DATA">
	<fo:root>
		<fo:layout-master-set>
				<fo:simple-page-master master-name="content"
page-width="8.5in" page-height="11in" margin="0.5in">
					<fo:region-before extent="20mm"
region-name="report-header"/>
					<fo:region-body margin-top="20mm"/>
				</fo:simple-page-master>
			</fo:layout-master-set>
			<fo:page-sequence master-reference="content"
force-page-count="no-force">
				<fo:static-content flow-name="report-header"
font-size="9pt">
					<fo:table table-layout="fixed"
width="100%">
						---------------------------

						</fo:table-body>
					</fo:table>
				</fo:flow>
			</fo:page-sequence>
		</fo:root>
	</xsl:template>
	<xsl:template match="INSTALLERS_REPORT">
<xsl:if test="count(REPORT) &gt;1">		
		<fo:block break-before="page"/>

	</xsl:if>						
						<fo:table
table-layout="fixed" width="100%" padding-before="2.5mm">
						<fo:table-column/>
						<fo:table-body>
							<fo:table-row>
	
<fo:table-cell text-align="center">
	
<fo:block>**** DEVICE INSTALLERS REPORT ****</fo:block>
	
</fo:table-cell>
							</fo:table-row>
						</fo:table-body>
					</fo:table>
		<xsl:for-each select="REPORT">		
-------------------------------------------------

				</fo:table-body>
			</fo:table>
		</xsl:for-each>
		</xsl:template>
</xsl:stylesheet>.


Christopher Edmonstone
Technology Services - GIS and Energy Business Solutions
Accenture Business Services for Utilities
10th Floor 6911 Southpoint Drive, Burnaby, B.C.
phone (604) 528-3324   fax (604) 528-1519
email: christopher.edmonstone@accenturebizservicesbc.com
Received on Thursday, 20 November 2003 17:49:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT