XSLT + HTML + SORT = wrong formating

admin

Administrator
Staff member
Hey guys, I have a question for you. I'm creating a html table populatedwith the data of an xml file with a Xsl stylesheet. To sort the table, I'musing msxml, I'm calling:listing.innerHTML = doc.documentElement.transformNode(styleSheet)Now here is the bad part. I need the background color of the rows to alternate.For instance, white then blue then white then blue..etc. When I do thesort the innerHTML call overwrites the existing tags and background colorsget out of sync and I get bunches of white and bunches of blue. My question:is there a better way to achieve the same kind of formatting on the page?Thanks, I'd appreciate anyone's input on this.
 
Back
Top