This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Stylesheets customizations to play nice with FOP
- From: Bob Stayton <bobs at caldera dot com>
- To: Martin Perina <martin dot perina at osu dot cz>, docbook-apps at lists dot oasis-open dot org
- Date: Wed, 18 Sep 2002 09:16:46 -0700
- Subject: Re: DOCBOOK-APPS: Stylesheets customizations to play nice with FOP
- References: <1032358424.679.17.camel@perina>
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