This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Stylesheets customizations to play nice with FOP


On Wed, Sep 18, 2002 at 04:13:39PM +0200, Martin Perina wrote:
> Hi all,
> 
> I've collected some customizations from various mails and
> put them into one file (fop-common.xsl). When you import
> this stylesheet along with standard fo/docbook.xsl, your
> PDF output through FOP will be quite nice. I've tested it
> with DocBook stylesheets 1.55 and FOP 0.24 and all elements,
> that I need (TOC, SVG images, tables, czech TTF fonts), worked
> fine.

This is very nice.  Thank you.
 
> But two problems remain:
> 
> 1) Page headers and footers aren't centered. Sorry, I don't
>    know how to fix it.

Perhaps the problem is the use of the
proportional-column-width() function in your
customized header.table template?  Is that function
supported in FOP?  You might need to use percentage
or fixed column widths (ugh).

You might try turning on
table borders in your header.table to test where
the cell boundaries are.  The center cell uses
text-align="center", but if the cell itself is
not centered on the page, then the text won't be
centered on the page.
 
--

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]