[xsl] for-each a specified no of times

Subject: [xsl] for-each a specified no of times
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 14 Dec 2005 20:33:41 -0000
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[@Name='clients']/data">
    <xsl:if test="position()=3">
        <xsl:break/>
    </xsl:if>
<xsl:for-each>

Thanks,

Mark Williams

Current Thread