[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Evil xpath
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().
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|