This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: DocBook tables and FOP
- From: Jeff Iezzi <jeff dot iezzi at semanticedge dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Fri, 16 Nov 2001 10:19:23 +0100
- Subject: Re: DOCBOOK-APPS: DocBook tables and FOP
- List-id: <docbook-apps.lists.oasis-open.org>
- References: <87k7ws8fbt.fsf@nwalsh.com>
- Reply-to: jeff dot iezzi at semanticedge dot com
On 15 Nov 2001, at 13:40, Petri Wessman wrote:
> It's probably related to the fact that FOP currently wants you to
> specify widths for tables, but I'm not sure. Anyone solved this? Or
> even hackup up some interim solution? :)
Yes. I asked the same question last week.
To "fix" the problem, add <colspec colwidth=""/> to your table for
each column.
While trying to solve this problem myself, I learned that FOP will
not handle proportional measures (1*) correctly. Norm's FOP style
sheets convert this information, but FOP does not yet support
proportional widths. (Norm's HTML style sheets, however, handle
proportional measures quite well).
My current solution is as follows:
<table frame="all" pgwide="1">
<title>Typographical Conventions</title>
<tgroup cols="3" align="left">
<colspec colwidth="3cm"/>
<colspec colwidth="6cm"/>
<colspec colwidth="5cm"/>
<thead>
<row>
<entry>Convention</entry>
<entry>Meaning</entry>
<entry>Example</entry>
</row>
</thead>
...
With this markup, the tables display in HTML and FOP quite well.
I hope this helps.
jeff
----------------------------------------------------------------
To subscribe or unsubscribe from this elist use the subscription
manager: <http://lists.oasis-open.org/ob/adm.pl>