[xsl] Unwanted blank pages

Subject: [xsl] Unwanted blank pages
From: <Anders.Svensson@xxxxxxxxxx>
Date: Thu, 7 May 2009 15:07:04 +0200
Hi,

I am having problems with unwanted blank pages. I have tried to search
for this in forums, but can't find much.

The problem is I get blank pages between the TOC and the body content,
and there is not supposed to be any there. I have tried all the values
on force-page-count and initial-page-number that I have read about for
omitting blank pages, but it doesn't help. The stylesheet snippet below
still produces the unwanted blank page between the TOC and the body
content...

What am I missing? I would really appreciate any suggestions!

Regards,

Anders

Snippets (slightly simplified for readability):

The fo:page-sequences:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
	<fo:page-sequence initial-page-number="1" master-reference="TOC"
format="1" id="TOC-sequence">
		<xsl:call-template name="standard-static-contents">
			<xsl:with-param name="page-number">
				<fo:page-number font-family="Times New
Roman"/>
			</xsl:with-param>
		</xsl:call-template>
		<fo:flow flow-name="xsl-region-body">
			<fo:block>
				<xsl:apply-templates
select="content/section/section[1]" mode="firstPage"/>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
	<fo:page-sequence master-reference="body" format="1"
id="header-sequence">
		<xsl:call-template name="standard-static-contents">
			<xsl:with-param name="page-number">
				<fo:page-number font-family="Times New
Roman"/>
			</xsl:with-param>
		</xsl:call-template>
		<fo:flow flow-name="xsl-region-body">
			<fo:block font-family="Times New Roman">
				<xsl:call-template name="content"/>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>


The page-sequence-masters:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

	<fo:page-sequence-master master-name="TOC"
initial-page-number="auto" force-page-count="no-force">
		<fo:repeatable-page-master-alternatives>
		<fo:conditional-page-master-reference
blank-or-not-blank="not-blank"/>
		<fo:conditional-page-master-reference odd-or-even="odd"
master-reference="toc-odd-page"/>
		<fo:conditional-page-master-reference odd-or-even="even"
master-reference="toc-even-page"/>
	</fo:repeatable-page-master-alternatives>
	<fo:page-sequence-master master-name="body"
initial-page-number="auto" force-page-count="no-force">
		<fo:repeatable-page-master-alternatives>
		<fo:conditional-page-master-reference
blank-or-not-blank="not-blank"/>
		<fo:conditional-page
###########################################

This message has been scanned by
F-Secure Anti-Virus for Microsoft Exchange.
For more information, connect to
http://www.f-secure.com/

Current Thread