This isnt a bug. Try setting the attribute force-page-count=no-force on
the first page-sequence.
3 pages are rendered because default value for force-page-count is auto,
which basically means that because you set the initial page count of the 2nd
page sequence to an odd number (1 in your example), FOP needs to insert an
EVEN page at the end of the 2nd page sequence.
From: Henrik Holle [EMAIL PROTECTED]
BUG in initial-page-number handling?
This xsl:fo document renders 3 pages
?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
fo:region-body margin-top=0.5cm/
fo:region-before extent=2cm/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=testMaster
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
!-- without initial-page-number --
fo:page-sequence master-reference=testMaster initial-page-number=1
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
/fo:root
This document is correct, only two pages
?xml version=1.0 encoding=iso-8859-1?
fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format;
fo:layout-master-set
!-- layout for the first page --
fo:simple-page-master master-name=testMaster
page-height=29.6cm page-width=21cm margin-top=0.5cm
margin-bottom=0.5cm margin-left=2cm margin-right=2cm
fo:region-body margin-top=0.5cm/
fo:region-before extent=2cm/
fo:region-after extent=0cm/
/fo:simple-page-master
/fo:layout-master-set
fo:page-sequence master-reference=testMaster
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
!-- without initial-page-number --
fo:page-sequence master-reference=testMaster
fo:flow flow-name=xsl-region-body
fo:blocktest/fo:block
/fo:flow
/fo:page-sequence
/fo:root
Any ideas?
henrik
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]
_
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]