OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Detecting last page


The XSL-FO standard and processors support page-position="last", but the DocBook stylesheets do not use it out of the box. This change would require some customization to add a simple-page-master and modifying the page-sequence-master to include it, something like this:

   <fo:page-sequence-master master-name="body-custom">
     <fo:repeatable-page-master-alternatives>
       <fo:conditional-page-master-reference master-reference="body-first"
                                             page-position="first"/>
       <fo:conditional-page-master-reference master-reference="body-last"
                                             page-position="last"/>
       <fo:conditional-page-master-reference master-reference="body-odd"
                                             page-position="rest"
                                             odd-or-even="odd"/>
       <fo:conditional-page-master-reference master-reference="body-even"
                                             page-position="rest"
                                             odd-or-even="even"/>
     </fo:repeatable-page-master-alternatives>
   </fo:page-sequence-master>

I presume you want to put the legalnotice in the static content on that page, so its simple-page-master will need a larger bottom body margin and bottom extent. You'll need to name the bottom region differently, and then add a new fo:static-content to a custom version of the 'running.foot.mode' template. If you define that static content directly, you won't need to put the content in the 'footer.content' template.

All this is a lot of trouble, of course. You might consider inserting an fo:footnote at the end of a custom template matching on article. That will still place the content at the bottom of the last page.

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- From: DeanNelson@aol.com
To: docbook-apps@lists.oasis-open.org
Sent: Thursday, May 17, 2012 2:13 PM
Subject: [docbook-apps] Detecting last page


All,

I need to detect the last page (not back page) in my article style sheets so I can put a legalnotice at the bottom of the last page. Any ideas? (FOP 1.0, DB 4.5)

It appears that pageclass does everything except "last page".

Regards,
Dean Nelson

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]