This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: For loop


> 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:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]