This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: [docbook] DocBook colwidth Problems
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Fondern, Michael van" <michael dot van dot fondern at imp-gmbh dot de>, <docbook at lists dot oasis-open dot org>
- Date: Thu, 6 Jan 2005 11:27:42 -0800
- Subject: Re: [docbook] DocBook colwidth Problems
- References: <D5BAB2861BB1D7119CB9000BCDAEA3F6015E22@exs-impar2.ar.imp-gmbh.de>
There is no parameter for using the HTML table model. It requires upgrading
to version 4.3 of the DocBook DTD, if you have not already done so. That DTD
permits using HTML table elements in place of CALS table elements. The
content of the table cells must still be valid DocBook, though.
The online version of The Definitive Guide shows the table content model:
http://docbook.org/tdg/en/html/table.html
But the description and examples have not been updated to show HTML table
markup. Here is a short example:
<table>
<caption>HTML markup tables</caption>
<colgroup>
<col width="18%"/>
<col width="11.2%"/>
<col width="17.2%"/>
<col width="53.5%"/>
</colgroup>
<thead>
<tr>
<td >Purpose</td>
<td >HTML Element</td>
<td >DocBook (CALS) Element</td>
<td >Comments</td>
</tr>
</thead>
<tbody>
<tr>
<td >Container for table elements.</td>
<td >table</td>
<td >table, informaltable</td>
<td >The table element in DocBook requires a title or caption,
while informaltable does not.</td>
</tr>
</tbody>
</table>
The current stylesheets support HTML table markup. The templates currently
have fewer formatting options relative to CALS tables, but the next
stylesheet release will add more.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Fondern, Michael van" <michael.van.fondern@imp-gmbh.de>
To: <docbook@lists.oasis-open.org>
Sent: Wednesday, January 05, 2005 11:52 PM
Subject: Re: [docbook] DocBook colwidth Problems
> Norman Walsh wrote:
> > The problem here is that the semantics of the colwidth attribute are
> > defined by CALS. The way you specify precentages in CALS is with the
> > "nn*" notation which requires the extensions.
>
> > You could use the HTML table model instead of CALS.
>
> Yes, I would be happy with this. But I cannot not find any parameter in
the
> docBook xsl stylesheets to enable HTML table model instead of CALS. Do you
> think I should post a kind feature request on Sourceforge for this ;-)?
>
> Greetings
>
> - Michael -
>
>
>
>
>