xsl-list
[Top] [All Lists]

RE: [xsl] Evil xpath

2006-08-18 15:29:24

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/


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--