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

Re: for-eaching for specified number of times

Subject: Re: for-eaching for specified number of times
From: "Mark Williams" <mark@xxxxxxxxxxx>
Date: Wed, 21 Jan 2004 20:28:45 -0000
eaching
Thanks.

Solution looks nice & easy, even for me!

Regards,

Mark
----- Original Message ----- 
From: <kakridge@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, January 21, 2004 8:20 PM
Subject: RE:  for-eaching for specified number of times


> <?xml version="1.0"?>
> <root>
> <node>1</node>
> <node>2</node>
> <node>3</node>
> <node>4</node>
> <node>5</node>
> <node>6</node>
> <node>7</node>
> <node>8</node>
> <node>9</node>
> <node>10</node>
> </root>
> 
> 
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="root">
> <xsl:variable name="i">8</xsl:variable>
> <xsl:for-each select="node[position() &lt; $i]">
> <xsl:value-of select="."/>
> </xsl:for-each>
> </xsl:template>
> </xsl:stylesheet>
> 
> 1234567
> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Mark
> Williams
> Sent: Wednesday, January 21, 2004 2:51 PM
> To: XSL-List
> Subject:  for-eaching for specified number of times
> 
> Hi,
> 
> Is there a way of terminating a for-each loop after it has reached a
> specified number of iterations.
> 
> TIA
> 
> Mark
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.