This is correct according to the language definition. If either operand is an empty sequence, the "eq" operator returns an empty sequence, while the "=" operator returns false.

Michael Kay

On 04/10/2012 10:10, Virendra Ray wrote:

When I use XPathSelector to evaluate result for '$v1 eq ()' , it is not giving any result using EvaluateSingle()
But when I change the expression as '$v1 = ()', it checks properly and give result.
what change should I do to make eq work in above expression.
I am using Saxon in .Net



Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!

saxon-help mailing list archived at