W3C home > Mailing lists > Public > www-xsl-fo@w3.org > November 2002

Re: Complex Page Numbering

From: Kiki AMEDJA <kiki@sagma.ma>
Date: Thu, 07 Nov 2002 09:55:19 +0000
Message-ID: <3DCA3887.5070700@sagma.ma>
To: "Gupta, Deepak" <Deepak.Gupta@schwab.com>, www-xsl-fo@w3.org

I had the same kind of problem. Of course xsl-fo can do it quite easily:
You need to have one simple-page-master for the first page and one for 
the rest of the chapter.Like:

<fo:simple-page-master master-name="first"
    page-height="185mm"
    page-width="120mm"
    margin-left="20mm"
    margin-right="20mm"
    >
    <fo:region-body  extent="135mm" margin-bottom="20mm" margin-top="20mm"/>

</fo:simple-page-master>


<fo:simple-page-master master-name="rest"
    page-height="185mm"
    page-width="120mm"
    margin-left="20mm"
    margin-right="20mm"
    >
    <fo:region-body  extent="135mm" margin-bottom="20mm" margin-top="20mm"/>
    <fo:region-after extent="20mm"  />
</fo:simple-page-master>

and then you'll have as page sequence master something like

<fo:page-sequence-master master-name="sequence-texte">
    <fo:repeatable-page-master-alternatives>
    <fo:conditional-page-master-reference page-position="first" 
master-reference="first"/>
    <fo:conditional-page-master-reference page-position="rest"  
master-reference="rest"/>
    </fo:repeatable-page-master-alternatives>
</fo:page-sequence-master>

I hope this will help.

Gupta, Deepak wrote:

>  
>
> I need to generate a document with the following structure :-
>
>  
>
>  
>
> Title page 1 - no page number
>
> Section 1    - page numbers = 1 ... N1
>
> Title page 2 - no page number
>
> Section 2    - page numbers = N1+1 ....N2
>
> Title page 3 - no page number
>
> Section 3    - page numbers = 1 ....N3
>
>  
>
>  
>
> i.e. You can think of pages 1...N2 of Sections 1 & 2 as being numbered 
> consecutively, if you ignore  Title page 2.
>
>  
>
> Can I do this in XSL-FO & if so how ?
>
>  
>
> thanks,
>
>  
>
> Deepak 
>
Received on Thursday, 7 November 2002 04:51:03 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:10 GMT