RE: [xsl] Evil xpath

Subject: RE: [xsl] Evil xpath
From: Erik Wilde <net.dret@xxxxxxxx>
Date: Sat, 19 Aug 2006 11:00:14 -0700
>> However, I cannot get a boolean value out of this statement.
>> Why wont this work: preceding-sibling::*[1] = 'title'  ???
> Because title is the name of the element, not its value.
> You want preceding-sibling::*[1][self::title]

or exists(preceding-sibling::*[1][self::title]), if you really must get a boolean as a result.

cheers,

dret.

Current Thread