Comment 2 for bug 1147563

Revision history for this message
Juan Zacarias (juan457) wrote : Re: FOTS: fn:nilled failures (at least 15)

The implementation of nilled was wrong it always returned false.

So I fixed it, but now different tests fail, the thing with this now failing tests is that.

when you send the query

fn:nilled(<a xsi:nil="true" />) should return false but it returns true

zorba auto assigns xsi prefix to the namespace "http://www.w3.org/2001/XMLSchema-instance" and also it validates it automatically, I don't know if this is intended.

But without considering that it should return false because 1) The namespace is never specified (unless auto assigning xsi to the namespace "http://www.w3.org/2001/XMLSchema-instance" is intended) and/or 2) because is not validated against a schema

Any idea of what zorba do in an automatic way, and is there a way to turn it off for testing?