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

Subject: RE: Evil xpath
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 18 Aug 2006 22:18:24 +0100
> 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]

Michael Kay
http://www.saxonica.com/

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