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


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@lists.mulberrytech.com
[mailto:owner-xsl-list@lists.mulberrytech.com]Namens
Jarno.Elovirta@nokia.com
Verzonden: Thursday, September 06, 2001 5:30 AM
Aan: xsl-list@lists.mulberrytech.com
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


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