[xslt] Bug: Wrong evaluation of equalities

Title: Bug: Wrong evaluation of equalities


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 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!?!

Best regards

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