[Home] [By Thread] [By Date] [Recent Entries]
On 8/19/06, Erik Wilde <net.dret@xxxxxxxx> wrote:
>> 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] The context of this thread is XPath 1.0. It is perfectly correct to use: preceding-sibling::*[1][self::title] at any place where a boolean is expected, because an empty node-set evaluates to false() and a non-empty one to true(). Xpath 1.0 has no standard function exists().
|

Cart



