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

Alternate row color

Subject: Alternate row color
From: Tham Tinh <khautinh@xxxxxxxxx>
Date: Fri, 10 Jan 2003 12:30:56 -0800 (PST)
xml alternate row color
Hello all,
I have xml and xsl file.
This is XML
<?xml version='1.0' encoding='ISO-8859-1'?>
<?xml-stylesheet type='text/xsl'
href='barcodeFamily.xsl'?>
<Data>
	<data1>
		<info1>
			<clnum>1234567</clnum>
			<clname>dumy, dumies</clname>
			<ssn>123456789 </ssn>
			<rel_desc>Child    </rel_desc>
		</info1>
	</data1>
	<data1>
		<info1>
			<clnum>7654321</clnum>
			<clname>miky, mikies </clname>
			<ssn>987654321 </ssn>
			<rel_desc>Child    </rel_desc>
		</info1>
	</data1>
</Data>

This is XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<xsl:template match="/">
			<html>
				<body>
					<b><xsl:apply-templates/></b>
				</body>
		</html>
	</xsl:template>
	<xsl:template match="data">
			<p>
			<center>
			<table>
				<tr>
					<th>Client Number</th>
					<th>Client Name</th>
					<th>Client SSN</th>
					<th>Relationship Description</th>
				</tr>
				<xsl:apply-templates/>
			</table>
			</center>
			</p>
	</xsl:template>

	<xsl:template match="data1">
		<tr>
			<td>
					<xsl:value-of select="clnum"/>
			</td>
			<td>
					<xsl:value-of select="clname"/>
			</td>
			<td>
					<xsl:value-of select="ssn"/>
			</td>
			<td>
					<xsl:value-of select="rel_desc"/>
			</td>
		</tr>
	</xsl:template>
</xsl:stylesheet>

I can't make it has the alternation row color on the
display.  So please help me to do this.
THANKS FOR YOUR HELPS!


=====
"It is essential to know that to be a happy person, a happy family, a happy society, it is very crucial to have a good heart, that is very crucial,"
Dalai Lama

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.