This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
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 19:36:27 +0100
- Subject: DOCBOOK-APPS: Bold cells in tables
Platform: DocBook XML 4.1.2, DocBook XSL 1.48
I would like to create a table which look like the below example, when
rendered in in HTML and FO,
All cells with text in them in the above example to be boldfaced, in
the way the contents of <entry> elements in <thead> are, when rendered
in HTML (and FO). All cells without entries are meant to be filled
out by the reader (with a pen on a paper printout).
+---------------------------------------------+
| Some text spanning multiple columns |
+---------+---------------+-------------------+
| Header1 | | |
+---------+---------------+-------------------+
| Header2 | | |
+---------+---------------+-------------------+
| Header3 | | |
+---------+---------------+-------------------+
| Some more text spanning multiple columns |
+---------+---------------+-------------------+
| Header4 | | |
+---------+---------------+-------------------+
| Header5 | | |
+---------+---------------+-------------------+
Is there a way to create it with the above combination of DocBook
document type, and style sheets? Is there a way to create this with
newer versions of either? If so, how new?
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>
(I'm planning to test this out, as soon as I have finished hanging up
some clotheslines in the basement)
But I'm clueless as how to handle getting "Header1", "Header2"
etc. into bold face.
Thanx!
- Steinar