Re: [xslt] Bug: Wrong evaluation of equalities

On Thu, Nov 13, 2003 at 06:56:58PM +0100, wrote:
> Hello,
> I tried the following Expression:
> 	 myNode != 'whatever'
> which returns true!
> If there is no myNode, then this expression must allways be false,
> according to the XPath specification:
> "If one object to be compared is a node-set and the other is a string,
> then the comparison will be true if and only if there is a node in the
> node-set such that the result of performing the comparison on the
> string-value <\l >  of the node and the other string is true", so if
> the node-set is empty, there can't be a node that is !='whatever'.
> Well, when I have no myNode, LibXSLT retuns true!?!

  Hum, this seems a valid point, would you mind bugzilla it, if possible
with a small example allowing to reproduce the problem ? The problem
is likely to be related to libxml2 XPath evaluation, not directly to



Daniel Veillard      | Red Hat Network  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]