Re: [xslt] Bug: Wrong evaluation of equalities
- From: Daniel Veillard <veillard redhat com>
- To: Sven Jossen swisscom com
- Cc: xslt gnome org
- Subject: Re: [xslt] Bug: Wrong evaluation of equalities
- Date: Fri, 14 Nov 2003 06:26:58 -0500
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]