This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Head of Pages (PDF)
- From: Martin Perina <martin dot perina at osu dot cz>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Thu, 24 Oct 2002 09:13:45 +0200
- Subject: Re: DOCBOOK-APPS: Head of Pages (PDF)
- References: <E184c3v-00034u-00@config13.kundenserver.de>
On Čt, 2002-10-24 at 09:05, stephan@stephan-wiesner.de wrote:
> Hi list, I have quite long chapter titles and they get line-wrapped in
> the headline of the pages. Therefore I tried to change the table that
> displays
> them, but could not make it work.
> Below is the corresponding code snippet.
> The table gets it's black border and the left cell has a red one, so I
> am sure
> that my code is used. The left cell still has a width of about a third
> pages,
> though.
> I use the 1.56.1 style, Saxon and FOP.
>
>
> <xsl:template name="header.table">
> <xsl:param name="pageclass" select="''"/>
> <xsl:param name="sequence" select="''"/>
> <xsl:param name="gentext-key" select="''"/>
>
> <!-- default is a single table style for all headers -->
> <!-- Customize it for different page classes or sequence location -->
>
> <xsl:variable name="candidate">
> <fo:table table-layout="fixed" width="100%" border="2.0pt solid
> black">
> <xsl:call-template name="head.sep.rule"/>
> <fo:table-column column-number="1" column-width="10%"/>
> <fo:table-column column-number="2" column-width="60%"/>
> <fo:table-column column-number="3" column-width="30%"/>
> <fo:table-body>
> <fo:table-row height="14pt">
> <fo:table-cell text-align="left"
> relative-align="baseline"
> display-align="before"
> border="1.0pt solid red">
> <fo:block>*
> </fo:block>
> </fo:table-cell>
>
Don't use % in column-widths for FOP, it doesn't understand it.
Try this:
<fo:table-column column-number="1"
column-width="proportional-column-width(1)"/>
<fo:table-column column-number="2"
column-width="proportional-column-width(6)"/>
<fo:table-column column-number="3"
column-width="proportional-column-width(3)"/>
Martin Perina