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

Re: Locate specific occurrence of element using XPath

Subject: Re: Locate specific occurrence of element using XPath
From: "Takuki Kamiya" <kamiya@xxxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Sep 1999 10:54:53 +0900
xpath occurrence
Thanks to the answers I got from Steve Dahl, Sean, Mike Key,
my problem has immediately been resolved.

"(A/C/E)[4]" instead of "A/C/E[4]" worked great!

Thanks a lot.

- Takuki Kamiya


----- Original Message ----- 
>From : Kay Michael <Michael.Kay@xxxxxxx>
Subject : RE: Locate specific occurrence of element using XPath

> > I have been having a hard time in trying to figure out if it is at all
> > possible to tell XSLT to locate 4th <E> element which comes 
> > right beneath
> > <A>/<C> in the example below using a single XPath expression. 
> > Any help or
> > hint will be appreciated.
> > 
> > <A>
> >   <B>
> >     <E></E>
> >     <E></E>
> >     ...
> >   <C>
> >     <E></E>
> >     <E></E>
> >   </C>
> >   <C>
> >     <E></E>
> >     <E></E>  <- I am trying to locate this element
> >     <E></E>
> >     <E></E>
> >   </C>
> >   <D>
> >     <E></E>
> >     <E></E>
> >     ...
> >   </D>
> > </A>
> > 
> > I tried "A/C/E[4]", but apparently it does not work...
> 
> I think "(A/C/E)[4]" will get the element you want.
> 
> Mike Kay
> 
 


 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.