This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Retrieving Full XPATH expression
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: Re: [xsl] Retrieving Full XPATH expression
- From: "Robert Koberg" <rob at koberg dot com>
- Date: Fri, 10 Aug 2001 11:40:18 -0700
- References: <F88R6IHupeyyfIIhs6h000041a8@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
ancestor::*
----- Original Message -----
From: "john smith" <john_smith73@hotmail.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Friday, August 10, 2001 11:17 AM
Subject: [xsl] Retrieving Full XPATH expression
> Given:
>
> <A>
> <B>
> <C>
> <D id="007">
> <E>val1</E>
> </D>
> <D id="008">
> <E>val2</E>
> </D>
> <C>
> </B>
> </A>
>
> How do I get the full Xpath for each node..For example, if the
> context node is <E> (with value "val1"), I want to get its full xpath
> as A/B/C/D[1]/E[1] and for the second occurrence of <E> (with value
"val2"),
> I want to get its full xpath as A/B/C/D[2]/E[2].
>
> Thanks a lot for the help.
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list