[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Alternate background-color in table columns.
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 <rogerio.rosa@eixodigital.com> wrote: > Hey, > > I am trying to generate a PDF. > > Rogério > > On Feb 25, 2014, at 3:59 PM, Peter Desjardins <peter.desjardins.us@gmail.com> wrote: > >> What format is your output? HTML, PDF, something else? >> >> Peter >> >> On Tue, Feb 25, 2014 at 10:19 AM, Rogério Rosa >> <rogerio.rosa@eixodigital.com> 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: docbook-apps-unsubscribe@lists.oasis-open.org >>> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org >> For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org >> >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]