This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: XSL - Break out from a for-each loop - Please help!!
- To: thusharap at eurocenter dot lk
- Subject: [xsl] Re: XSL - Break out from a for-each loop - Please help!!
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 30 Apr 2001 09:47:58 +0100
- CC: XSL-List at lists dot mulberrytech dot com
- References: <711677989624D411B81E003005016255323EC2@eccolcom01.colombo.eurocenter.lk>
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is there any keyword available in XSL to break out of a loop ?
No. You should just modify the select expression on your for-each
to select the nodes you need rather than selecting too many and
then trying to break out of the loop. (XSLT is essentially a functional
programmning language: assume that all iterations of the for-each occur
in parallel, and you'll see that there can't really be any notion
of breaking out)
David
I removed xml-dev as that list isn't for help queries and cross posting
is discouraged (see the information pages for this list)
_____________________________________________________________________
This message has been checked for all known viruses by Star Internet delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.star.net.uk/stats.asp
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list