[xsl] Newbie, question about looping

Subject: [xsl] Newbie, question about looping
From: Erick Todd <erick@xxxxxxxxxxxxxxxxxxx>
Date: 23 Oct 2002 10:10:52 -0600
Hi all I am new to this list, and pretty new to xsl.

Here is my problem.  I have an xml document of items.  And I need to
display these items in a table 3 across.

So every 3 I try to put in a </tr><tr> but that is invalid.  Has anyone
had to try and do this??

I was wondering if there was a way to do a more complicated loop, or in
a for-each while in the body, can I increment the pointer so that I
could do all 3 each time through the for-each (i.e. in c or java
for (int i=0;i<length;i=i+3)
and then access element at i, i+1, i+2, etc

Or is there another way.  This is probably a dumb question but I
couldn't seem to find it in the FAQ or archives.




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread