[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: trouble with preceding axis
From: Geert Josten <Geert.Josten@xxxxxxxxxxx>
Date: Tue, 03 Jan 2006 21:06:48 +0100
Now I want to modify this so that I refer to the preceding item element, the first one in the list. I tried the following without success (it returns the second item element):

//preceding::item[label = 'subTitle']

Suggestions are most welcome on this.

Perhaps you are looking for:


//item[label = 'subTitle']/preceding::item[1]

Cheers,
Geert

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member