Subject: Re: [xsl] alternate background color for <tr> From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Wed, 18 May 2005 11:37:31 -0400 |
Cheers, Wendell
Following script I am using for background color for table row <xsl:template name="colorTemplate"> <!-- Colors alternate rows differently to ease readability without grid lines --> <xsl:if test="position() mod 2 = 0"> <xsl:text disable-output-escaping = "yes"> <tr style="background-color: #EEEEEE; border-top: thick solid black;" > </xsl:text> </xsl:if>
<xsl:if test="position() mod 2 = 1"> <xsl:text disable-output-escaping = "yes"> <tr style="background-color: #FFFFFF; border-top: thick solid black;" > </xsl:text> </xsl:if> </xsl:template> ........................ However, baccause of multiple for loops I am not getting desired bahaviour. Is there any otherway of achieving same.
regards, Ranjan
__________________________________ Yahoo! Mail Mobile Take Yahoo! Mail with you! Check email on your mobile phone. http://mobile.yahoo.com/learn/mail
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] alternate background color fo, Ranjan K. Baisak | Thread | [xsl] Several XSLT questions..., Rolando Isidoro |
RE: [xsl] document('') and URIResol, jpk | Date | [xsl] Several XSLT questions..., Rolando Isidoro |
Month |