This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: For loop
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] For loop
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 12 Jul 2001 12:49:30 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I have read about the for-each construct.
> What I need though is a way of looping and stopping the loop under
> a certain condition
You can't "stop" the loop because it isn't sequential.
What you can do is select the elements you want to process, eg,
<xsl:for-each select="item[position() < 5]">
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list