Christian Grün wrote:
Yes, this is a good candidate! (even though at first glance it uses map{}, so is restricted to XQuery 3.0 + Map Facility implementations).
True; here, we may have to use element fragments as drawback.
I am sure we will find solutions if ever needed ;-)
Thanks for looking at this! Have you got some other driver implementations so far?
That's probably a discussion we should continue on the EXPath mailing list, I don't want to bother BaseX users, but in a few words Mike told me he doesn't have any objection to let us try to adapt the code to Saxon HE (they use Saxon EE internally of course), and Matthias was optimist about Zorba. There are a couple of other leading implementations I'd like to check, but that's a good start.
Also, I think (as far as I know) that FOTS does not cope very well with heterogenous sequence. For instance for the result of the HTTP Client function (returning an element http:response describing the response then one or several items representing the actual content of the response), it is not easy to assert anything about the returned sequence except its length (or to create several test cases with the same function call, one asserting the length, one asserting things on the first item, one asserting things on the second item, ...)
But I think that's a good start! ;-)
Thanks for your responses. Regards,
-- Florent Georges http://fgeorges.org/ http://h2oconsulting.be/