RE: [xsl] How to select a range of elements with offset and lengt h?

Subject: RE: [xsl] How to select a range of elements with offset and lengt h?
From: Sreeni Chippada <sreeni@xxxxxxxxx>
Date: Mon, 8 Apr 2002 17:17:52 -0400
Thanks.


-----Original Message-----
From: J.Pietschmann [mailto:j3322ptm@xxxxxxxx]
Sent: Monday, April 08, 2002 5:04 PM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] How to select a range of elements with offset and
length?


Sreeni Chippada wrote:
> Hi,
> 	I am trying to select a range of elements using an offset and
> length.
> 	For example in the following xml,
> 		<a>
> 		  <b>
> 			<item>1</item>
> 			<item>45</item>
> 			<item>1</item>
> 			<item>200</item>
> 			<item>KKK</item>
> 			<item>23</item>
> 			<item>1</item>
> 			<item>1</item>
> 			<item>200</item>
> 			<item>100</item>
> 		   </b>
> 		</a>
> 
> 	if I want to select elements from 3 to 7, what is the xpath
> expression?


  <xsl:template match="b">
    <xsl:for-each select="item[position()>=3 and 7>=position()]" >

J.Pietschmann




 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