List Info

Thread: Table Head Row Background Color




Table Head Row Background Color
user name
2006-03-15 16:32:08
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&gt;
&nbsp;
Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net
 ;
 
----- 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&gt;
 &nbsp; <title&gt;Title<;/title>
 &nbsp;   &nbsp; <informaltable>  ;   &nbsp;   &nbsp;   &nbsp; 
 &nbsp;   &nbsp;   &nbsp;   &nbsp;  <tgroup cols="4"&gt;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <thead&gt;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <row >
 ; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <entry align="center">First</entry>
 ; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <entry align="center">Second</entry>
&nbsp; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <entry align="center">Third</entry>
 ; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <entry align="center">Forth</entry>
 ; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp;  </row&gt;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  </thead>
   ;  &nbsp;   &nbsp;   &nbsp;   &nbsp;  <tbody&gt;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;     &nbsp; &nbsp;  <row>;<entry&gt;some content<;/entry></row>;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <row>;<entry&gt;some content<;/entry></row>;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp; 
<row>;<entry&gt;some content<;/entry></row>;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  <row>;<entry&gt;some content<;/entry></row>; &nbsp;  &nbsp;   &nbsp;   &nbsp;   &nbsp; &nbsp;
 &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  </tbody>
   ;  &nbsp;   &nbsp;   &nbsp;  </tgroup>
 ; &nbsp;  &nbsp;   &nbsp;  </informaltable>; &nbsp;   &nbsp; 
 &nbsp;   &nbsp;  </blockquote>

I want to set an background-color for <thead&gt; 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.
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )