Hi everybody,
Here is my problem:
I have a document that may have 1 to N pages. I would like to print
something on the footer of the last page (or at least on the bottom).
But, if there is only one page, the last page is also the first.
I tried something like:

 <!-- layout for "normal" pages -->
 <fo:simple-page-master master-name="ordinary"
   <fo:region-body margin-top=".2cm"/>
   <fo:region-after region-name="ordinary_footer" extent="0cm"/>

 <!-- layout information for the last page which contains a special
footer -->
 <fo:simple-page-master master-name="last_page"
   <fo:region-body margin-bottom="9.5cm"/>
   <fo:region-after region-name="last_page_footer" extent="9.5cm"/>

 <fo:page-sequence-master master-name="contents">
     <fo:conditional-page-master-reference page-position="last"
     <fo:conditional-page-master-reference page-position="first"
     <fo:conditional-page-master-reference page-position="rest"
master-name="ordinary" />
 </fo:page-sequence-master >

It doesnt work: I made several tests but it looks like I have the footer
on every page instead of the last one only.
For the last page footer, I'm using a static-content with the flow-name
set to the region-name defined in the layout.
Actually the footer is printed on every page, as if only
page-position="last" is invoqued.
Do I miss something in the use of fo:conditional-page-master-reference?

Thanx a billion,

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to