|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: test for even or odd
I searched http://www.biglist.com/lists/xsl-list/archives/ for "even or odd" and came up with a bunch of useful hints. Hope that helps, Douglas Ross Developer, HTML UI Framework Kronos E-mail: dross@xxxxxxxxxx www.kronos.com -----Original Message----- From: xsl list [mailto:list.xsl@xxxxxxxxx] Sent: Friday, January 21, 2005 5:47 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: test for even or odd So I have come down to this, I am going to get a count of how many elements there are of a certain tag. How can I test if the number is even or odd? Stateing the obvious here but if it came back with 3 of the tag I would want a "this number is odd" returned (or 1 and 0 for even). I already have my rows alternating in color, but there are two sets, I need to first check for directories and place them and then I check for files and place them. When I check for files I then check to see if there was a even or odd number of files telling me what color to start on! Thanks!
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








