Michael Niemann wrote:
hello,
I've split up my document into several page-sequences for better
performance.
<xsl:for-each select="documentContent/chapter">
<fo:page-sequence master-reference="ContentPageMaster"
initial-page-number="1" force-page-count="no-force">
<fo:static-content flow-name="xsl-region-after">
<fo:block><fo:page-number /></fo:block>
</fo:static-content>
<fo:flow flow-name="xsl-region-body" >
<fo:block font-size="24" font-weight="bold"
border-bottom="solid black 1px" id="{generate-id()}"
margin-bottom="20px"><xsl:value-of select="@page" /></fo:block>
<fo:block><xsl:apply-templates /></fo:block>
</fo:flow>
</fo:page-sequence>
</xsl:for-each>
</fo:root>
</xsl:template>
As you can easily see each chapter now starts with page 1. Is it
possible to pass the pagenumber between those sequences without losing
all the performance gain I got from spolitting up the chapter into
sequences?
Don't set initial-page-number="1" on any page-sequence except the first.
To do this you will need to introduce an xsl:if. Try something like the
following (caveat: completely untested and provided with no warranty!)
<xsl:for-each select="documentContent/chapter">
<fo:page-sequence master-reference="ContentPageMaster"
force-page-count="no-force">
<xsl:if test="position()==1">
<xsl:attribute
name="initial-page-number">1</xsl:attribute>
</xsl:if>
<fo:static-content flow-name="xsl-region-after">
<fo:block><fo:page-number /></fo:block>
etc
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]