> Why can't the context contain a sequence? Please have a look at the specification for more information on the context item:
https://www.w3.org/TR/xquery-31/#dt-context-item > 2017-08-02 16:31 GMT+02:00 Ghislain Fourny <gfou...@inf.ethz.ch>: >> >> Dear Wouter, >> >> I see your point and it makes sense. The tricky part here, following up on >> your suggestion to make the choice of the first position less arbitrary, is >> that the context item must be an item: it cannot be a sequence of several >> items. This eliminates any design based on communicating the value on the >> left through the context item mechanism. The closest to the intent of => >> would be using a let variable binding. >> >> The convention of binding the first argument, of course, implies that the >> (or some) functions are designed having in mind that the first parameter is >> “special”, that is, if the function is intended to be used with =>. In Java >> or C++, the self/this implied parameter is special, too (but it is not >> considered to be at any position). >> >> Kind regards, >> Ghislain >> > > _______________________________________________ > talk@x-query.com > http://x-query.com/mailman/listinfo/talk _______________________________________________ talk@x-query.com http://x-query.com/mailman/listinfo/talk