W3C home > Mailing lists > Public > www-xsl-fo@w3.org > July 2002

Infinite Loop

From: Michael Galpin <mgalpin@rmx.com>
Date: Tue, 23 Jul 2002 20:39:49 -0400 (EDT)
Message-ID: <1E4B3DB95120D611815D00508BC27752094787@rmx-mail-int.rmxdev.com>
To: "'www-xsl-fo@w3.org'" <www-xsl-fo@w3.org>




I have a simple FO doc that is getting stuck in an infinite loop when using
FOP. The loop involves the PDFLink object and its toPDF() method. As such,
the resulting PDF document is created and becomes infinite in size. This is
the FO doc:

<?xml version = '1.0' encoding = 'utf-8'?>
<fo:root writing-mode="lr-tb" hyphenate="false" text-align="start"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:html="http://www.w3.org/1999/xhtml" role="html:html">
	<fo:layout-master-set>
		<fo:simple-page-master page-width="auto" page-height="auto"
master-name="all-pages">
			<fo:region-body margin-top="1in" margin-right="1in"
margin-bottom="1in" margin-left="1in" column-count="1" column-gap="12pt"/>
			<fo:region-before region-name="page-header"
extent="1in" display-align="before"/>
			<fo:region-after region-name="page-footer"
extent="1in" display-align="after"/>
			<fo:region-start extent="1in"/>
			<fo:region-end extent="1in"/>
		</fo:simple-page-master>
	</fo:layout-master-set>
	<fo:page-sequence master-reference="all-pages">
		<fo:title>Hello World</fo:title>
		<fo:static-content flow-name="page-header">
			<fo:block font-size="small" text-align="center"
space-before.conditionality="retain" space-before="0.5in">
				Hello World
			</fo:block>
		</fo:static-content>
		<fo:static-content flow-name="page-footer">
			<fo:block font-size="small" text-align="center"
space-after.conditionality="retain" space-after="0.5in">
				- <fo:page-number/> -
			</fo:block>
		</fo:static-content>
		<fo:flow flow-name="xsl-region-body">
			<fo:block role="html:body">
				Hello World
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

The Java method being used is straight out of one of the embedded app
examples, but can be supplied if needed. 

-- Michael Galpin
mgalpin@rmx.com
Received on Wednesday, 24 July 2002 05:00:36 GMT

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