This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]