xsl-list
[Top] [All Lists]

RE: [xsl] Evil xpath

2006-08-19 11:00:53
>> 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]

or exists(preceding-sibling::*[1][self::title]), if you really must get a boolean as a result.

cheers,

dret.

--~------------------------------------------------------------------
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>
--~--