[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

alternate background color for <tr>

Subject: alternate background color for <tr>
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Wed, 18 May 2005 06:43:16 -0700 (PDT)
alternate background color
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">
			&lt;tr style="background-color: #EEEEEE;
border-top: thick solid black;" &gt;
		</xsl:text>
	</xsl:if>

	<xsl:if test="position() mod 2 = 1">
		<xsl:text disable-output-escaping = "yes">
			&lt;tr style="background-color: #FFFFFF;
border-top: thick solid black;" &gt;
		</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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.