Altova Mailing List Archives

RE: [xsl] Accessing data from repeating values with the same name

From: "SHEIKH Sajjad" <Sajjad.SHEIKH@----------->
Date: 1/23/2004 5:23:00 AM
Thanks Andrew for correction.

-----Original Message-----
From: Andrew Curry [mailto:andrew.curry@xxxxxxxxxxxx] 
Sent: 23 January 2004 16:14
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] Accessing data from repeating values with the same

<xsl:value-of select="//Data/Item[position()=3]"/>
should do it.
----- Original Message ----- 
From: "Mark Williams" <mark@xxxxxxxxxxx>
To: "XSL-List" <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Friday, January 23, 2004 2:45 PM
Subject: [xsl] Accessing data from repeating values with the same name

> Hi,
> How do I access repeating nodes in an xml file outside of a for-each 
> statement.
> As an example:
> <Data>
>     <Item>1</Item>
>     <Item>2</Item>
>     <Item>3</Item>
>     <Item>4</Item>
>     <Item>5</Item>
> </Data>
> How would I, say, get the value for 3rd item.
> Mark
>  XSL-List info and archive:

 XSL-List info and archive:

This message has been scanned for all viruses by BTnet VirusScreen. The
service is delivered in partnership with MessageLabs.

This service does not scan any password protected or encrypted

If you are interested in finding out more about the service, please
visit our website at

 XSL-List info and archive:


These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.