Altova Mailing List Archives


Re: XSL-FO pagination

From: "Colin Savage" <sav912@-------.--->
To: NULL
Date: 12/11/2003 9:34:00 AM
Correction, you will need to add the force-page-count attribute to the page
sequence to make sure that you always get the fixed page.
i.e.
<fo:page-sequence master-reference="defaultdoc"
force-page-count="end-on-even">

Colin

"Colin Savage" <sav912@h...> wrote in message
news:br96c7$njn$1@c......
> Hi Clarissa,
>
> Your attempt was fairly close, except for a few small errors.
> The mods I made to your file are as follows:
> 1. region-body does not use the "extent" attribute, use the margin-xxx
> properties instead.
> 2. I added the region-name attributes to the region-before elements, so
that
> you can have the two static content regions in the page-sequence, targeted
> to a specific region.
> 3. You only need one page sequence.
>
> In the fo:flow, repeat the fo:block element a few times to get the proper
> effect.
>
> In an unrelated solution, have you considered pre-printed stationery? It
may
> work out cheaper for high volumes of printing.
>
> Colin.
>
> <?xml version="1.0"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
>     <fo:simple-page-master master-name="datapage" page-height="29.7cm"
> page-width="21.0cm">
>         <fo:region-body margin-top="5.5cm" margin-bottom="5.5cm"/>
>         <fo:region-before extent="5.5cm" region-name="normal-before"/>
>         <fo:region-after extent="5.5cm"/>
>     </fo:simple-page-master>
>
>     <fo:simple-page-master master-name="fixedback" page-height="29.7cm"
> page-width="21.0cm" >
>          <fo:region-body margin-top="29.7cm"/>
>         <fo:region-before extent="29.7cm" region-name="fixed-before"/>
>     </fo:simple-page-master>
>
>     <fo:page-sequence-master master-name="defaultdoc">
>         <fo:repeatable-page-master-alternatives>
>             <fo:conditional-page-master-reference odd-or-even="odd"
> master-reference="datapage"/>
>             <fo:conditional-page-master-reference odd-or-even="even"
> master-reference="fixedback"/>
>         </fo:repeatable-page-master-alternatives>
>     </fo:page-sequence-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="defaultdoc">
> <fo:static-content flow-name="normal-before">
> <fo:block>normal page <fo:page-number/></fo:block>
> </fo:static-content>
> <fo:static-content flow-name="fixed-before">
> <fo:block>fixed page <fo:page-number/></fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>
> The fo:static-content formatting object does not generate any areas. The
> fo:static-content formatting object returns the sequence of areas created
by
> concatenating the sequences of areas returned by each of the children of
the
> fo:static-content. The order of concatenation is the same order as the
> children are ordered under the fo:static-content.
> </fo:block>
> <!-- repeat the above block about 20 times -->
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
>
>
> "Clarissa" <anon@n...> wrote in message
> news:03KBb.468$526.1024@n......
> > "Oleg Tkachenko" <oleg@NO!SPAM!PLEASEtkachenko.com> wrote in message
> > news:uQy9PtkvDHA.1996@T......
> > > Clarissa wrote:
>
>


Disclaimer

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.