Re: pagnation and rtf

Bertrand Delacretaz <[email protected]> Tue, 25 Nov 2003 14:03:29 +0100
Newsgroups gmane.text.xml.jfor.general
Message-ID <[email protected]>
Hi Flora,

To get different headers on each page, you need to put each page in its=20=

own <fo:page-sequence>, which jfor will translate to different RTF=20
"sections".

The jfor=20
samples/cocoon/tests/simple-tests/multiple-page-sequences.fo.xml=20
document shows how to create several page sequences, adding the=20
appropriate fo:static-content elements in each section should do the=20
trick.

-Bertrand


Le Mardi, 25 nov 2003, =E0 13:42 Europe/Zurich, [email protected] a=20
=E9crit :

> Hi,
>
> I do not know, if I got the right mailing list, but i trie and if I am
> wrong excuse me.
> I trie to make a rtf document which consits of 5 pages.
> each page has a different header. see sample below
> My rtf files doesnt' look like what I expect.
> It is only one page with all 5 headers.
>
> I use jfor 0.7.2rc1. Any clues?
>
> Thank you in advance
> regards,
> Flora
>
>
> sample:
> <?xml version=3D"1.0" encoding=3D"UTF-8"?>
> <fo:root xmlns:fo=3D"http://www.w3.org/1999/XSL/Format">
>   <fo:layout-master-set>
>      <fo:simple-page-master page-height=3D"29.7cm" page-width=3D"21cm"
> master-name=3D"1stP">
>        <fo:region-body region-name=3D"xsl-region-body" =
margin-top=3D"1cm"/>
>        <fo:region-before region-name=3D"1stBe" extent=3D"1cm"/>
>      </fo:simple-page-master>
>      <fo:simple-page-master page-height=3D"29.7cm" page-width=3D"21cm"
> master-name=3D"2ndP">
>        <fo:region-body region-name=3D"xsl-region-body" =
margin-top=3D"1cm"/>
>        <fo:region-before region-name=3D"2ndBe" extent=3D"1cm"/>
>      </fo:simple-page-master>
>      <fo:simple-page-master page-height=3D"29.7cm" page-width=3D"21cm"
> master-name=3D"3rdP">
>        <fo:region-body region-name=3D"xsl-region-body" =
margin-top=3D"1cm"/>
>        <fo:region-before region-name=3D"3rdBe" extent=3D"1cm"/>
>      </fo:simple-page-master>
>      <fo:simple-page-master page-height=3D"29.7cm" page-width=3D"21cm"
> master-name=3D"4thP">
>        <fo:region-body region-name=3D"xsl-region-body" =
margin-top=3D"1cm"/>
>        <fo:region-before region-name=3D"4thBe" extent=3D"1cm"/>
>      </fo:simple-page-master>
>      <fo:simple-page-master page-height=3D"29.7cm" page-width=3D"21cm"
> master-name=3D"5thP">
>        <fo:region-body region-name=3D"xsl-region-body" =
margin-top=3D"1cm"/>
>        <fo:region-before region-name=3D"5thBe" extent=3D"1cm"/>
>      </fo:simple-page-master>
>      <fo:page-sequence-master master-name=3D"first">
>        <fo:repeatable-page-master-reference maximum-repeats=3D"1"
> master-reference=3D"1stP"/>
>        <fo:repeatable-page-master-reference maximum-repeats=3D"1"
> master-reference=3D"2ndP"/>
>        <fo:repeatable-page-master-reference maximum-repeats=3D"1"
> master-reference=3D"3rdP"/>
>        <fo:repeatable-page-master-reference maximum-repeats=3D"1"
> master-reference=3D"4thP"/>
>        <fo:repeatable-page-master-reference maximum-repeats=3D"1"
> master-reference=3D"5thP"/>
>      </fo:page-sequence-master>
>   </fo:layout-master-set>
>
>   <fo:page-sequence master-reference=3D"first">
>      <fo:static-content flow-name=3D"1stBe">
>        <fo:block>Data 1</fo:block>
>      </fo:static-content>
>      <fo:static-content flow-name=3D"2ndBe">
>        <fo:block>Data 2</fo:block>
>      </fo:static-content>
>      <fo:static-content flow-name=3D"3rdBe">
>        <fo:block>Data 3</fo:block>
>      </fo:static-content>
>      <fo:static-content flow-name=3D"4thBe">
>        <fo:block>Data 4</fo:block>
>      </fo:static-content>
>      <fo:static-content flow-name=3D"5thBe">
>        <fo:block>Data 5</fo:block>
>      </fo:static-content>
>      <fo:flow flow-name=3D"xsl-region-body">
>        <fo:block>Doing both scrollable </fo:block>
>      </fo:flow>
>   </fo:page-sequence>
> </fo:root>
>
>
> "This message and any attachment ("the Message") are confidential. If=20=

> you
> have received the Message in error, please notify the sender=20
> immediately
> and delete the Message from your system , any use of the Message is
> forbidden.
> Correspondence via e-mail is primarily for information purposes. RZB
> neither makes nor accepts legally binding statements unless otherwise
> agreed to the contrary."
>
>
>
>
>
--
   Bertrand Delacretaz
   independent consultant, Lausanne, Switzerland
   http://cvs.apache.org/~bdelacretaz/



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/