xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Theresa Jayne Forster" <ther...@inbrand.co.uk>
Subject RE: pagenumbering
Date Tue, 30 Aug 2011 15:24:56 GMT
So, If I have it right, I need to set up 2 page-sequences one with the cover and one with the
rest, 

And I need to set the page number at 1 for the second one,

Reading through the links you gave appear to show that you cannot set a pagenumber of 0 

<quote>A positive integer. If a non-positive or non-integer value is provided, the value
will be rounded to the nearest integer value greater than or equal to 1.</quote>

 

So something like 

 

<fo:simple-page-master master-name="Front Page”>

            <fo:region-body region-name="xsl-region-body-front" />

            <fo:region-before region-name="xsl-region-before-front" />

</fo:simple-page-master>

 

<fo:simple-page-master master-name="free-text-odd" >

            <fo:region-body region-name="xsl-region-body" column-count="2" column-gap="4mm"
/>

            <fo:region-after region-name="free-text-after-odd" />

            <fo:region-before region-name="free-text-before-odd"/>

</fo:simple-page-master>

 

<fo:simple-page-master master-name="free-text-even" >

            <fo:region-body region-name="xsl-region-body" column-count="2" column-gap="4mm"
/>

            <fo:region-after region-name="free-text-after-even" />

            <fo:region-before region-name="free-text-before-even" />

</fo:simple-page-master>

 

<fo:page-sequence-master master-name="Contents">

<fo:repeatable-page-master-alternatives>

                        <fo:conditional-page-master-reference master-reference="Front Page"/>

            </fo:repeatable-page-master-alternatives>

</fo:page-sequence-master>   

                                                

<fo:page-sequence-master master-name="Free Text-" initial-page-number=”1”>

            <fo:repeatable-page-master-alternatives>

                        <fo:conditional-page-master-reference master-reference="free-text-even"
odd-or-even="even"/>

                        <fo:conditional-page-master-reference master-reference="free-text-odd"
 odd-or-even="odd"/>

            </fo:repeatable-page-master-alternatives>

</fo:page-sequence-master>

 

Kindest regards

 


Theresa Forster

Senior Software Developer



From: Glenn Adams [mailto:glenn@skynav.com] 
Sent: 30 August 2011 15:52
To: fop-users@xmlgraphics.apache.org
Subject: Re: pagenumbering

 

actually, this is an FO issue, not XSL, since it is FOP that generates page numbers via <fo:page-number>

 

the correct answer is that you need to use the initial-page-number property on fo:page-sequence
to specify a different starting number than is generated by "auto";

 

see http://www.w3.org/TR/2006/REC-xsl11-20061205/#initial-page-number and and http://www.w3.org/TR/2006/REC-xsl11-20061205/#fo_page-sequence
for details;

 

regards,

glenn

On Tue, Aug 30, 2011 at 8:36 AM, Christopher R. Maden <crism@maden.org> wrote:

On 08/30/2011 09:49 AM, Theresa Jayne Forster wrote:
> I was wondering, how can you change the page numbering on
> page-number-citation stuff,
>
> We have the requirement of numbering starting on the inside cover as
> page 1 not page 2 as currently the front page is classed as page 1.
>
> Is there any way to make the numbering start from 1 on the inside of
> the front cover?

[This is really an XSL question, not a FOP-specific question.]

The thing to change is not the page-number-citation, but the page number
itself.  Make the inside cover start a new page-sequence, starting its
number from 1.  Simple! (-:

~Chris
--
Chris Maden, text nerd  <URL: http://crism.maden.org/ >
“The present tendency and drift towards the Police State gives all
 free Americans pause.” — Alabama Supreme Court, 1955
 (Pike v. Southern Bell Tel. & Telegraph, 81 So.2d 254)

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org <mailto:fop-users-unsubscribe@xmlgraphics..apache.org>

For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org

 

  _____  

No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1392 / Virus Database: 1520/3866 - Release Date: 08/29/11


Mime
View raw message