Hello,
I am trying to do a loop using XSLT and want to put a div tag around the content for each 10th row. I need the div tag around the content because I am going to use the content in a text scroller script.
I thought about doing something like this:
1) Increment parameter value (called counter) for each loop.
2)
Test if position() = 1 or counter = 10. If true, then put a div start tag at the beginning and an end div tag at the end of the content.
3) If clause 2 is true, set counter variable to 0 and repeat above;
The code below doesn�t work as it isn�t valid html markup at runtime. Is there anyone who can correct the code below or do I have to use javascript to build up the code using a StringBuffer?
Thanks in advance...
[ December 03, 2008: Message edited by: Jeppe Sommer ]
[ December 03, 2008: Message edited by: Jeppe Sommer ]