Bug 10158 - Infinite loop when page-height is set to auto
Summary: Infinite loop when page-height is set to auto
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: page-master/layout (show other bugs)
Version: 0.20.3
Hardware: PC All
: P3 critical
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-23 05:34 UTC by Karthikeyan M.
Modified: 2012-04-01 06:55 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Karthikeyan M. 2002-06-23 05:34:28 UTC
When the "page-height" attribute of "simple-page-master" is set to auto, it 
generates an infinite loop while trying to conver the fo into a pdf.

<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" 
	xmlns:html="http://www.w3.org/1999/xhtml" 
	writing-mode="lr-tb" hyphenate="false" text-align="justify" 
	role="html:html">
	
<fo:layout-master-set>
	<fo:simple-page-master page-width="21cm" 
				page-height="auto" 
				master-name="all-pages">
		<fo:region-body column-gap="12pt" column-count="1" margin-
left="1in" margin-bottom="1in" margin-right="1in" margin-top="1in"/>
		<fo:region-before display-align="before" extent="1in" region-
name="page-header"/>
		<fo:region-after display-align="after" extent="1in" region-
name="page-footer"/>
		<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/>

	<fo:static-content flow-name="page-header">
		<fo:block font-size="small" text-align="center" space-
before="0.5in" space-before.conditionality="retain"/>
	</fo:static-content>
	<fo:static-content flow-name="page-footer">
		<fo:block font-size="small" text-align="center" space-
after="0.5in" space-after.conditionality="retain">
			- <fo:page-number/> -
		</fo:block>
	</fo:static-content>

	<fo:flow flow-name="xsl-region-body">
		<fo:block font-family="sans-serif" role="html:body">

		<fo:block space-before="1em" space-after="1em" 
role="html:p">Hello World!</fo:block>

		</fo:block>
	</fo:flow>
</fo:page-sequence>

</fo:root>
Comment 1 Oleg Tkachenko 2002-11-24 08:19:49 UTC
Fixed in cvs (maintenance branch). Still need to be fixed in the trunk, but
through User Agent.
Comment 2 Glenn Adams 2012-04-01 06:55:27 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed