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

Subject: RE: [xsl] How to define the XPath expression to retrieve a following/preceding element in an XInclude
From: "Ed Steenhoek" <e.steenhoek@xxxxxxxxx>
Date: Sun, 9 Sep 2001 20:54:00 +0200
Jarno,

Thanks for your answer but it did not work within Cocoon. This could be due
to the XInclude implementation in Cocoon. Unfortunately I don't have a way
available other than Cocoon to test this XInclude. I will dive into that on
their mailinglist ans see if it should work within their implementation or
not.
I did try this as an XSL:Value-Of in an XSLT styleheet and it worked without
a problem.
I'm not aware that this should behave different in an XInclude.

Regards,

Ed

-----Oorspronkelijk bericht-----
Van: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Namens
Jarno.Elovirta@xxxxxxxxx
Verzonden: Thursday, September 06, 2001 5:30 AM
Aan: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Onderwerp: RE: [xsl] 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




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread