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

Re: [xsl] trouble with preceding axis


Subject: Re: [xsl] 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