[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Newbie, question about looping

Subject: Newbie, question about looping
From: Erick Todd <erick@xxxxxxxxxxxxxxxxxxx>
Date: 23 Oct 2002 10:10:52 -0600
erick todd
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.

Ideas??

Thanks!!

-Erick




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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.