Re: [xslt] Bug: Wrong evaluation of equalities



On Thu, Nov 13, 2003 at 06:56:58PM +0100, Sven.Jossen@swisscom.com 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
libxslt.
   http://xmlsoft.org/XSLT/bugs.html

   thanks,

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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