RE: [xsl] Evil xpath

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