This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to define the XPath expression to retrieve a following/preceding element in an XInclude
- To: xsl-list at lists dot mulberrytech dot com
- Subject: RE: [xsl] How to define the XPath expression to retrieve a following/preceding element in an XInclude
- From: Jarno dot Elovirta at nokia dot com
- Date: Thu, 6 Sep 2001 06:30:07 +0300
- Reply-To: xsl-list at lists dot mulberrytech dot com
> But what is the XPath expression the retrieve the preceding
> or following
> navKey element?
>
> I tried:
> //navKey[@navID='S001'][following::group[1]/navKey/@navID] but that
> does not do the trick. Anyone an idea?
//navKey[@navID='S001']/following::group[1]/navKey/@navID
or
//navKey[@navID='S001']/following::navKey[1]/@navID
if the structure of your XML is uniform and each group has only one navKey.
Jarno
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list