This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: How to define the XPath expression to retrieve a following/preceding element in an XInclude


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]