I see here (http://www.sagehill.net/docbookxsl/BGtableColor.html) that
you could apply a "dbfo bgcolor" processing instruction to each entry
element in your XML source. That doesn't sound very pleasant though.

I would start by trying to customize the XSLT that writes FO elements
for tables. The way you do this depends on the specific DocBook
elements you are using for tables. If you use d:entry elements, it
looks like the <xsl:template match="d:entry|d:entrytbl" name="entry">
template in fo/tables.xsl might be a good place to experiment.

It looks like a fairly intricate template and it already does some
calculations based on columns. There are probably several ways to
identify the first entry in each row. When you figure out a way to do
that, try altering the bgcolor variable value.

I hope that's a little helpful.

Peter

On Tue, Feb 25, 2014 at 11:00 AM, Rogério Rosa
<[email protected]> wrote:
> Hey,
>
> I am trying to generate a PDF.
>
> Rogério
>
> On Feb 25, 2014, at 3:59 PM, Peter Desjardins <[email protected]> 
> wrote:
>
>> What format is your output? HTML, PDF, something else?
>>
>> Peter
>>
>> On Tue, Feb 25, 2014 at 10:19 AM, Rogério Rosa
>> <[email protected]> wrote:
>>> Hello,
>>>
>>> I am trying to set a different background colour for the first column in a 
>>> table, however I am not managing to do it. There is anyone that can help me 
>>> ?
>>>
>>> Thanks in advance.
>>> Rogério
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [email protected]
>>> For additional commands, e-mail: [email protected]
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to