Having just the force-page-count property on the subsequent page
sequences should do the trick.

 

<fo:page-sequence master-reference="ContentPageMaster"
force-page-count="no-force">

 

The page number on subsequent page sequences is a continuation from the
previous page sequence in this case.

 

________________________________

From: Michael Niemann [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, November 13, 2007 10:45 AM
To: fop-users@xmlgraphics.apache.org
Subject: How to keep pagenumber over several page-sequences

 

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?

best regards
michael

  

________________________________

Get easy, one-click access to your favorites. Make Yahoo! your homepage.
<http://us.rd.yahoo.com/evt=51443/*http:/www.yahoo.com/r/hs>  

Reply via email to