[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: for-each a specified no of times

Subject: RE: for-each a specified no of times
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Thu, 15 Dec 2005 09:06:30 -0000
xsl for each 20 times
Thanks David and Michael.  Precisely what I was looking for.

-----Original Message-----
From: Michael Kay [mailto:mike@xxxxxxxxxxxx]
Sent: 14 December 2005 23:24
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: RE:  for-each a specified no of times


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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.