[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Unwanted blank pages

Subject: Unwanted blank pages
From: <Anders.Svensson@xxxxxxxxxx>
Date: Thu, 7 May 2009 15:07:04 +0200
 Unwanted blank pages
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.