xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Debasish Jana" <debasi...@anshinsoft.com>
Subject RE: FOP - help in alternate color setting in table
Date Tue, 11 Apr 2006 10:59:06 GMT
Many thanks, but is there any direct way using some fo tag as attribute to
fo:table suc as say,


<fo:table ... >










From: Cinzia [mailto:cinzianet@dsl.pipex.com] 
Sent: Tuesday, April 11, 2006 4:01 PM
To: fop-users@xmlgraphics.apache.org
Subject: Re: FOP - help in alternate color setting in table


One way is to create the row in one xsl:template and cells in another


If this is the type of table you have in mind, read colour(row,column):


R(1,1) B(1,2) R(1,3) B(1,4)
B(2,1) R(2,2) B(2,3) R(2,4)
R(3,1) B(3,2) R(3,3) B(3,4)
B(4,1) R(4,2) B(4,3) R(4,4)



1) first cell of row:
      R if odd row
      B if even row
      store colour in v1
2) second and subsequent cells of row
      choose B when v1=R and R when v1=B
      store colour in v1


use xsl:param and xs:with-param setting and passing v1 for the two



----- Original Message ----- 

From: Debasish <mailto:debasishj@anshinsoft.com>  Jana 

To: fop-users@xmlgraphics.apache.org 

Sent: Tuesday, April 11, 2006 10:41 AM

Subject: FOP - help in alternate color setting in table




Is there any way to set alternate colors for rows and columns for a
fo:table? For example, I would like to set the first row as red, second as
blue, third as red and so on.


If there is no such attribute to do so, is there any workaround to
accomplish this?


Pls help.




Debasish Jana


View raw message