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

Re: Alternating Row Colors using XLS

Subject: Re: Alternating Row Colors using XLS
From: "Kevin Millecam" <kmillecam@xxxxxxxxxxx>
Date: Mon, 11 Jun 2001 21:44:01 -0600
xsl alternating row
Here's a good example of using XSLT to generate alternating row colors in a table: http://www-106.ibm.com/developerworks/library/x-xslt5.html

Kevin


From: "Gitanjali" <narsu@xxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re:  Alternating Row Colors using XLS
Date: Mon, 11 Jun 2001 18:23:51 -0400

See this link for alternate colors

http://www.hytes.com/hytes/docs/viewcode.asp?id=18&lid=3684

Thanks
Narsu

----- Original Message -----
From: "Kevin Shallow" <sourjan@xxxxxxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, June 11, 2001 5:54 PM
Subject:  Alternating Row Colors using XLS


> Hello everyone. I'm in the process of attemping to > translate some xml into a table in html. That in > itself is easy enough, but catch is I want to > alternate the row colors. So given a general XML > document like: > > <row> > <column1>Column Data</column1> > <column2>Column Data</column2> > <column3>Column Data</column3> > </row> > <row> > <column1>Column Data</column1> > <column2>Column Data</column2> > <column3>Column Data</column3> > </row> > <row> > <column1>Column Data</column1> > <column2>Column Data</column2> > <column3>Column Data</column3> > </row> > > I want end up with some html like: > > <tr bgcolor='color1'> > <td>Column Data</td> > <td>Column Data</td> > <td>Column Data</td> > </tr> > <tr bgcolor='color2'> > <td>Column Data</td> > <td>Column Data</td> > <td>Column Data</td> > </tr> > <tr bgcolor='color1'> > <td>Column Data</td> > <td>Column Data</td> > <td>Column Data</td> > </tr> > > I would normally just use modular division and divdie > the row number by 2. If the reault was zero, I'd use > the alternating color. I don't seem to be able to find > a mod operator in XLS, but I assume there is some > facility to let me do this. > > Does any have any ideas? > > _Kevin > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > >


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



_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.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.