B.S.Navin wrote:
> Thank you very much!!! This was exactly what I wanted. In fact, I was
> grappling with the task of displaying a header row with the column names,
> before this mail.
>
> One more doubt is that if a table is inserted in the body (somewhere in a
> section, while using docbook), you get a thin border, but for this "revision
> history" table, the border is thick. I tried many variations with the
> border-width attribute, but still the border remains thick.
>
> Any ideas?
>
> Snapshot of a simple table attached...
The CSS specifies that there is a 1-pixel border around the table and a
1-pixel border around each cell.
---
articleinfo > revhistory {
...
display: table;
border-width: 1;
...
}
revnumber,
revision > date,
revision > authorinitials,
revremark,
revdescription {
...
display: table-cell;
border-width: 1;
...
}
---
And 1-pixel border + 1-pixel border looks like a single thick border.
The normal DocBook tables (which are incredibly complex to render on
screen) are not styled using simple, declarative, CSS rules such as the
ones used to render the above revhistory.
DocBook/CALS are styled using a complex StyleSheetExtension
(http://www.xmlmind.com/xmleditor/_distrib/docs/dev/ar01s08.html) which
honors attributes such as rowsep and colsep. That's why the two tables
look different.