Simple XSL transformation help

Discussion in 'OT Technology' started by evil_dude, Apr 18, 2003.

  1. evil_dude

    evil_dude Guest

    So, I'm just learning XSL, and the fact that the code must be XML compliant keeps getting in my way. Basically, I need to take a single XML tree and build it into a 2 column XHTML table. My thinking is, to iterate thru the list with a for-each loop, and if the position() mod 2 = 0, add a open row tag, otherwise, add a close row tag. However, the XML rules say you can't have the tags separated like that. My other thought would be to have each run thru the loop process the two adjacent cells, however I can't find how to skip to the next element inside the loop. Any ideas?
     

Share This Page