OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Row and cell color in print output


Bob,

thank you very much. I haven't realized this can be so complex.
However, what you wrote means that I can't set the cell background 
color. Should I call RenderX guys to work around this problem or just 
forget about coloring cells until the next release of XEP and/or DocBook 
XSL?
This is not a show stopper for me but I really need this feature since 
there is no other way to highlight the table cells in PDF documents.

-Z


Bob Stayton wrote:

>OK, I found the problem.  The stylesheet looks for the PI as a child of the
>entry element.  In your example the PI was inside the para inside the entry
>element, so it wasn't a direct child of entry.  I need to clarify that in
>the book as well.
>
>And to clarify one point: XEP never sees these DocBook PIs. They are
>converted to FO properties by the DocBook stylesheet, so any XSL-FO
>processor would have exhibited the same behavior.
>
>Bob Stayton
>Sagehill Enterprises
>DocBook Consulting
>bobs@sagehill.net
>
>
>----- Original Message ----- 
>From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
>To: "Bob Stayton" <bobs@sagehill.net>
>Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
>Sent: Wednesday, June 15, 2005 12:37 AM
>Subject: Re: [docbook-apps] Row and cell color in print output
>
>
>  
>
>>Bob Stayton wrote:
>>
>>    
>>
>>>Sorry, I didn't mean to imply that you had to customize
>>>table.cell.properties in order to get background color in a cell.  That
>>>      
>>>
>PI
>  
>
>>>should just work without any customization.  I was just wondering if part
>>>      
>>>
>of
>  
>
>>>your customization was interfering with the handling of the bgcolor PI.
>>>      
>>>
>If
>  
>
>>>you haven't customized table.cell.properties, then you should be getting
>>>"yellow" in your FO file table cell.  If you are using a customization
>>>layer, do you still not get yellow when you use the 1.68.1 stylesheet
>>>directly?
>>>
>>>
>>>      
>>>
>>I use a CVS snaphot dated 5/5/2005, so it's based on 1.68.1 (I guess).
>>Plus, of course, my customization layer.
>>I have checked what if I use pure stylesheet without my hacks. And,
>>sadly, no background it the table cells. It seems either my stylesheet
>>is defective, or XEP can't deal with PIs, or both or anything else.
>>
>>    
>>
>>>And looking at fo/table.xsl, I see that support for the bgcolor PI in
>>>      
>>>
>table
>  
>
>>>rows was added (by me, no less).  I need to update that section in my
>>>      
>>>
>book
>  
>
>>>to match the current stylesheet.  So that is why the row bgcolor works
>>>      
>>>
>for
>  
>
>>>you.  But it is still a mystery why the cell bgcolor doesn't work.  Can
>>>      
>>>
>you
>  
>
>>>send me a file (off list) that illustrates the problem?
>>>
>>>Bob Stayton
>>>Sagehill Enterprises
>>>DocBook Consulting
>>>bobs@sagehill.net
>>>
>>>
>>>----- Original Message ----- 
>>>From: "Zbyszek Cybulski" <z.cybulski@gmail.com>
>>>To: "Bob Stayton" <bobs@sagehill.net>
>>>Cc: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
>>>Sent: Tuesday, June 14, 2005 11:38 PM
>>>Subject: Re: [docbook-apps] Row and cell color in print output
>>>
>>>
>>>
>>>
>>>      
>>>
>>>>Well, this is a bit mysterious. I haven't customized the
>>>>table.cell.properties template, so this is likely why I can't find my
>>>>"yellow" background in the FO. However, you wrote in your book, that the
>>>>row coloring works for HTML only
>>>>http://sagehill.net/docbookxsl/BGtableColor.html. I've found it working
>>>>the opposite way, that is, rows are colored in PDF while cells aren't. I
>>>>was a bit misled by the description of the table coloring methods since
>>>>it didn't work as described, especially when you consider the last
>>>>paragraph of the section called "Cell background color".
>>>>In addition, the last sentence of the "Background color" section clearly
>>>>states that more sofisticated row coloring can be obtained by
>>>>customization of the table.cell.properties template.
>>>>Maybe, in my case, this opposite behavior is due to XEP not FOP? I don't
>>>>know.
>>>>Anyway, I'll try to play with table.cell.properties and let you know of
>>>>the progress.
>>>>
>>>>Thanks,
>>>>
>>>>Zbyszek
>>>>
>>>>
>>>>
>>>>Bob Stayton wrote:
>>>>
>>>>
>>>>
>>>>        
>>>>
>>>>>It works for me.  Have you customized the table.cell.properties
>>>>>template?  That template actually applies the dbfo bgcolor PI to the
>>>>>table cell.  Do you get "yellow" on the table-cell in the fo?
>>>>>
>>>>>Bob Stayton
>>>>>Sagehill Enterprises
>>>>>DocBook Consulting
>>>>>bobs@sagehill.net <mailto:bobs@sagehill.net>
>>>>>
>>>>>
>>>>>
>>>>>   ----- Original Message -----
>>>>>   *From:* Zbyszek Cybulski <mailto:z.cybulski@gmail.com>
>>>>>   *To:* DocBook Apps <mailto:docbook-apps@lists.oasis-open.org>
>>>>>   *Sent:* Tuesday, June 14, 2005 6:17 AM
>>>>>   *Subject:* [docbook-apps] Row and cell color in print output
>>>>>
>>>>>   Hi,
>>>>>
>>>>>   I want some table cells to have colored background. If I set the
>>>>>   <?dbfo bgcolor="yellow" ?> processing instruction for a table row
>>>>>   (after <row>), the print output shows a yellow row in a table. But
>>>>>   when I do it for a cell (after <entry>), it doesn't work and the
>>>>>   cell has no yellow background in PDF.
>>>>>   I use XEP 4.3 with DocBook 4.4 and XSL 1.68.1 on Windows.
>>>>>
>>>>>   Anyone can help?
>>>>>
>>>>>   Thanks,
>>>>>   -Z
>>>>>          
>>>>>


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]