RE: [xsl] For loop

Subject: RE: [xsl] For loop
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 12 Jul 2001 12:49:30 +0100
> 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() &lt; 5]">

Mike Kay
Software AG 

 XSL-List info and archive:

Current Thread