Hi Kerstin,
Since you are generating the XML using XSL, you should be able
to add the PI using your stylesheet. A PI inside a stylesheet is treated
like a comment and is not output. To output a PI, you need to use the XSLT
element:
<xsl:processing-instruction
name="dbfo">bgcolor="#EEEEEE"</xsl:processing-instruction>
----- Original Message -----
Sent: Wednesday, March 15, 2006 8:12
AM
Subject: [docbook-apps] Table Head Row
Background Color
Hello
everybody,
I'am using informaltables surrounded by a blockquote for
displaying tables in PDF- and HTML-Output. The informal tables mostly looks
like this: <blockquote>
<title>Title</title>
<informaltable>
<tgroup
cols="4">
<thead>
<row >
<entry
align="center">First</entry>
<entry align="center">Second</entry>
<entry
align="center">Third</entry>
<entry align="center">Forth</entry>
</row>
</thead>
<tbody>
<row><entry>some content</entry></row>
<row><entry>some
content</entry></row>
<row><entry>some
content</entry></row>
<row><entry>some content</entry></row>
</tbody>
</tgroup>
</informaltable>
</blockquote>
I want
to set an background-color for <thead> but I only find this http://www.sagehill.net/docbookxsl/BGtableColor.html#TableRowBackground
. Its not what needed.
PIs doesn't work, because I generate a
DocBook-XML from a XSL. In XSL is set an PI <?dbhtml bgcolor="#EEEEEE"
?>, but this isn't take over to the generated XML.
I find in
table.xsl at line 255 the template for thead. But how can I specify the
background-color there, so that a normal XML-Parser takes this value in the
right way? And how can I specify a background-color for entries without using
PIs? I can't find anything special about this problem.
Thank you for
your answers. Regards, K.
|