[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] alternating node type in a loop
I want to loop through all the article nodes within a section element. The problem is I want to alternate the way they are looped by "type" going "1,2,1,2,1,2" and then when there aren't anymore to alternate through finish looping through the remaining nodes. Any Ideas? This is the xml <articles> <section> <article type="1">Article</article> <article type="2">Article</article> <article type="2">Article</article> <article type="1">Article</article> <article type="2">Article</article> <article type="1">Article</article> <article type="1">Article</article> <article type="1">Article</article> </section> <articles> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|