Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xsl] Unwanted blank pages

From: <Anders.Svensson@------.--->
To: <xsl-list@-----.------------.--->
Date: 5/7/2009 1:07:00 PM
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent