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:html="http://www.w3.org/1999/xhtml" role="html:html">
		<fo:simple-page-master page-width="auto" page-height="auto"
			<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: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: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:flow flow-name="xsl-region-body">
			<fo:block role="html:body">
				Hello World

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

-- Michael Galpin
Received on Wednesday, 24 July 2002 05:00:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:26 UTC