Subject: RE: Locate specific occurrence of element using XPath From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 20 Sep 1999 12:40:18 +0100 |
> 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Sorted and unsorted output into a t, Miloslav Nic | Thread | Re: Locate specific occurrence of e, Takuki Kamiya |
RE: Help with using macros in XSL, Ben Robb | Date | RE: xslt and sax, Kay Michael |
Month |