[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] How to define the XPath expression to retrieve a follow ing/preceding element in an XInclude


Subject: RE: [xsl] How to define the XPath expression to retrieve a follow ing/preceding element in an XInclude
From: Jarno.Elovirta@xxxxxxxxx
Date: Thu, 6 Sep 2001 06:30:07 +0300

> 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



Current Thread
Keywords