[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] for-each a specified no of times
Subject: RE: [xsl] for-each a specified no of times From: "Michael Kay" <mike@xxxxxxxxxxxx> Date: Wed, 14 Dec 2005 23:24:01 -0000 |
<xsl:for-each select="(DATA/Table[@Name='clients']/data)[position() < 4]"> Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Mark Williams [mailto:mark@xxxxxxxxxxx] > Sent: 14 December 2005 20:34 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > 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[@Name='clients']/data"> > <xsl:if test="position()=3"> > <xsl:break/> > </xsl:if> > <xsl:for-each> > > Thanks, > > Mark Williams
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] for-each a specified no o, David Carlisle | Thread | RE: [xsl] for-each a specified no o, Mark Williams |
Re: [xsl] for-each a specified no o, David Carlisle | Date | [xsl] FW: XSL-FO project, Chris Loschen |
Month |