RE: [xsl] for-eaching for specified number of times

Subject: RE: [xsl] for-eaching for specified number of times
From: kakridge@xxxxxxxxxxxxx
Date: Wed, 21 Jan 2004 15:20:25 -0500
<?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: [xsl] 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


Current Thread