Suspending page numbering

Is it possible to suspend the <fo:page-number> counter for certain pages in
a document, so that in a sequence of pages numbered 1-N, there can be some
(section title) pages that do not have a page number ?
 
Does the force-page-count="no-force" property provide this functionality ? I
tried it, but unfortunately, it didn't seem to have the desired effect.
 
My test FO is :-
_______________________________________________________________________
 
<?xml version="1.0" encoding="utf-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
 
 <!--
  The document consists of two types of page:
  a title page, followed by section pages.
 -->
<fo:layout-master-set>
 
    <fo:simple-page-master master-name="title"
        page-height="12cm"
        page-width="12cm"
        margin-top="0.5cm"
        margin-bottom="0.5cm"
        margin-left="1cm"
        margin-right="0.5cm">
        <fo:region-body
           margin-top="3cm" />
    </fo:simple-page-master>
 
    <fo:simple-page-master master-name="section"
        page-height="12cm"
        page-width="12cm"
        margin-left="0.5cm"
        margin-right="1cm"
        margin-top="0.5cm"
        margin-bottom="0.5cm">
  <fo:region-before extent="1cm"/>
  <fo:region-after extent="1cm"/>
  <fo:region-body 
   margin-top="1.1cm"
   margin-bottom="1.1cm" />
    </fo:simple-page-master>
 
 </fo:layout-master-set>
 
 
 

<fo:page-sequence master-name="title">
<fo:flow flow-name="xsl-region-body">
 
    <fo:block font-family="Helvetica" font-size="18pt"
        text-align="end"> 
        Title 1
    </fo:block>
    <fo:block font-family="Helvetica" font-size="12pt"
        text-align="end" space-after="36pt">
        Joe Bloggs
    </fo:block>
 <fo:block text-align="end">
  Some info
 </fo:block>
    <fo:block text-align="end">
        A Deepak Production
    </fo:block>
    
</fo:flow>
</fo:page-sequence> 
 
 
 

<fo:page-sequence master-name="section" initial-page-number="1">
 
<fo:static-content flow-name="xsl-region-before">
 <fo:block font-family="Helvetica" font-size="10pt"
  text-align="center">
  Summary Section
 </fo:block>
</fo:static-content>
 
<fo:static-content flow-name="xsl-region-after">
 <fo:block font-family="Helvetica" font-size="10pt"
  text-align="center">
  page <fo:page-number /> of <fo:page-number-citation
ref-id="endOfSection"/> 
 </fo:block>
</fo:static-content>
 
<fo:flow flow-name="xsl-region-body">
 <fo:block font-size="14pt">
  Just as we were about to commence our march, I was seized with
a fainting fit, in consequence of exhaustion and sudden exposure to
the wind; but after eating a morsel of portable soup, I recovered, so
far as to be able to move on. I was unwilling at first to take this
morsel of soup, which was diminishing the small and only remaining
meal for the party; but several of the men urged me to it, with
much kindness. The ground was covered a foot deep with snow,
the margin of the lakes was incrusted with ice, and the swamps over
which we had to pass were entirely frozen; but the ice not being
sufficiently strong to bear us, we frequently plunged knee-deep in
water. and afterwards experienced.
 </fo:block>
 
</fo:flow>
</fo:page-sequence>
 

<fo:page-sequence master-name="title" force-page-count="no-force">
<fo:flow flow-name="xsl-region-body">
    <fo:block font-family="Helvetica" font-size="18pt"
        text-align="end"> 
        Title 2
    </fo:block>
    <fo:block font-family="Helvetica" font-size="12pt"
        text-align="end" space-after="36pt">
        Some Stuff
    </fo:block>
 <fo:block text-align="end">
  Some Stuff
 </fo:block>
    <fo:block text-align="end">
        A Deepak Production
    </fo:block>
</fo:flow>
</fo:page-sequence>
 

<fo:page-sequence master-name="section">
 
<fo:static-content flow-name="xsl-region-before">
 <fo:block font-family="Helvetica" font-size="10pt"
  text-align="center">
  Section 2
 </fo:block>
</fo:static-content>
 
<fo:static-content flow-name="xsl-region-after">
 <fo:block font-family="Helvetica" font-size="10pt"
  text-align="center">
  Page <fo:page-number /> of <fo:page-number-citation
ref-id="endOfSection"/>
 </fo:block>
</fo:static-content>
 
<fo:flow flow-name="xsl-region-body">
 <fo:block font-size="14pt">
  Some More Stuff
 </fo:block>
 
 <!-- Dummy block to hold marker for end of section-->
 <fo:block  id="endOfSection"/>
</fo:flow>
 
</fo:page-sequence>

</fo:root>
_______________________________________________________________________

thanks,
 
Deepak
 

Received on Wednesday, 13 November 2002 04:19:34 UTC