xsl-list
[Top] [All Lists]

Re: for-each a specified no of times

2005-12-14 15:57:44

You can't break out of a loop (all the iterations may be executed in
parallel, so it's not clear what that would mean) but if you just want
to iterate over the first three data elements, just select 3 of them:

<xsl:for-each select="(DATA/Table[(_at_)Name='clients']/data)[position()&lt;4]">

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>