xsl-list
[Top] [All Lists]

RE: for-each a specified no of times

2005-12-15 02:06:30
Thanks David and Michael.  Precisely what I was looking for. 

-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: 14 December 2005 23:24
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] for-each a specified no of times


<xsl:for-each select="(DATA/Table[(_at_)Name='clients']/data)[position() &lt;
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>
--~--


--~------------------------------------------------------------------
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>