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 14:54:16 +0000
Message-ID: <3DCA7E98.4030808@sagma.ma>
To: Paul Grosso <pgrosso@arbortext.com>, www-xsl-fo@w3.org

You are right Paul! In fact i just copied  that text from an existing 
and more complex  XSL-FO document that I worked on, I didn't pay 
attention to the details.
Thanks

Paul Grosso wrote:

>At 09:55 2002 11 07 +0000, Kiki AMEDJA wrote:
>
>>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>
>>
>
>The idea above is correct, but I have a few comments on the details.
>
>While the above page-sequence-master is valid, it is awkward (and might
>not work will all implementations).  If you want one page model for the 
>first page and another for the rest, then you aren't really providing 
>alternatives, just one reference for the first page and another for
>the rest.
>
>So a simpler, more logical page-sequence-master would be:
>
><fo:page-sequence-master master-name="sequence-texte">
>   <fo:single-page-master-reference master-reference="first"/>
>   <fo:repeatable-page-master-reference master-reference="rest"/>
></fo:page-sequence-master>
>
>Note that maximum-repeats on fo:repeatable-page-master-reference
>defaults to "no-limit".
>
>
>Also, note that extent is not a property allowed on fo:region-body.
>
>paul
>
>
>
Received on Thursday, 7 November 2002 09:50:03 GMT

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