HOW CAN I REACH THIS: Automatic Footer Alignment.

Here should go questions about transforming XML with XSLT and FOP.
Alattar
Posts: 2
Joined: Mon Jun 27, 2005 8:22 am

HOW CAN I REACH THIS: Automatic Footer Alignment.

Post by Alattar »

Hello,

There are many pages that have a footer.
Footer corresponds to the next pattern:

------ // line separator
{number_of_page}

The problem is in the need to move the {number_of_page}
element to the left/right corner of the page depending on
the evenness of the page. For example,

on the first page:
------ // line separator
{number_of_page} -> in the right bottom corner of the page

on the second page:
------ // line separator
{number_of_page} -> in the left bottom corner of the page

etc.

How can I do this automatically? I cannot find the answer on
this question. Please, help me.
Alattar
Posts: 2
Joined: Mon Jun 27, 2005 8:22 am

Re: HOW CAN I REACH THIS: Automatic Footer Alignment.

Post by Alattar »

I am confronted with this difficulties using the XSL-FO, of course.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Post by sorin_ristache »

Hello,

If you are working directly on a XSL-FO document see the solution at

http://www.dpawson.co.uk/xsl/sect3/N870 ... d11901e115

For DocBook XML documents transformed to the PDF format using the DocBook XSL stylesheets you must customize the footer.content template from the fo/pagesetup.xsl stylesheet:

http://www.sagehill.net/docbookxsl/PrintHeaders.html

The DocBook DTD and the DocBook XSL stylesheets are included in the <oXygen/> installation.

Best regards,
Sorin
Post Reply