From: Wolfgang Meier <sbhati@we...> - 2004-09-24 14:09:06
> I've implemented fn:deep-equal, as I need it for my current project. The
> implementation, some unit tests, and a patch to add the function to the
> table of built-in ones are attached. It seems to work, but I didn't try
> it with very complex queries (I'm especially worried about
> getDependencies() and inPredicate, since I have no idea how they work),
> and I didn't try to optimize it in any way. Any feedback would be
> appreciated. Thanks!
Thanks a lot. I added the function to the CVS and the snapshot release.
getDependency() should only return the default setting:
Dependency.CONTEXT_SET | Dependency.CONTEXT_ITEM;
This indicates that the function should be called once for every item in the
context. eXist has some optimized functions (e.g. fn:not) that are able to
process the entire context in a batch. However, for most functions this
doesn't apply. The same is true for inPredicate, which is only relevant for