This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Bold cells in tables
- From: Steinar Bang <sb at dod dot no>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 29 Jan 2003 22:58:07 +0100
- Subject: DOCBOOK-APPS: Re: Bold cells in tables
- References: <873cnbdcr8.fsf@doohan.bang.priv.no>
>>>>> Steinar Bang <sb@dod.no>:
> Can the spanning header be done with multible <tgroup> elements?
> Eg. something like this?
> <table>
> <tgroup>
> <thead>
> <entry>Some text spanning multiple columns</entry>
> </thead>
> ...
> </tgroup>
> <tgroup>
> <thead>
> <entry>Some more text spanning multiple columns</entry>
> </thead>
> ...
> </tgroup>
> </table>
This looks like two separate tables stuck close together in HTML. Not
the look I was aiming for.
Also, the only way I found for both <tgroup> elements to have the same
value, was to set pgwide="1" on the <table>. Is there another way?
Thanx!
- Steinar
My table test document follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://localhost/xml/dtds/docbook4.1.2/docbookx.dtd">
<article>
<section>
<title>A section</title>
<table pgwide="1">
<title>A table</title>
<tgroup cols="3">
<colspec colname="c1" align="left"/>
<colspec colname="c2"/>
<colspec colname="c3"/>
<thead>
<row>
<entry namest="c1" nameend="c3">Some text spanning multiple columns</entry>
</row>
</thead>
<tbody>
<row>
<entry>Header1</entry>
<entry></entry>
<entry></entry>
</row>
<row>
<entry>Header2</entry>
<entry></entry>
<entry></entry>
</row>
<row>
<entry>Header3</entry>
<entry></entry>
<entry></entry>
</row>
</tbody>
</tgroup>
<tgroup cols="3">
<colspec colname="c1"/>
<colspec colname="c2"/>
<colspec colname="c3"/>
<thead>
<row>
<entry namest="c1" nameend="c3" align="left">Some more text spanning multiple columns</entry>
</row>
</thead>
<tbody>
<row>
<entry>Header4</entry>
<entry></entry>
<entry></entry>
</row>
<row>
<entry>Header5</entry>
<entry></entry>
<entry></entry>
</row>
</tbody>
</tgroup>
</table>
</section>
</article>