<xsl:for-each select="(DATA/Table[(_at_)Name='clients']/data)[position() <
4]">
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: Mark Williams [mailto:mark(_at_)skwirel(_dot_)com]
Sent: 14 December 2005 20:34
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] for-each a specified no of times
Hi,
Is there a way to make a for-each loop only for a specified
no of times.
eg
<xsl:for-each select="DATA/Table[(_at_)Name='clients']/data">
<xsl:if test="position()=3">
<xsl:break/>
</xsl:if>
<xsl:for-each>
Thanks,
Mark Williams
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--