From: Pierrick B. <pie...@fr...> - 2011-04-16 05:16:55
|
Hi, Le 16/04/2011 07:02, Dmitriy Shabanov a écrit : > Yes, eXist's xquery engine resolve function on name & number of > parameters, but do not put types in account. Well, it should be > simple to improve ... Keep quiet gentlemen :-) In the XQuery specs, we have : > It is a static error [err:XQST0034] if the expanded QName and arity > (number of arguments) of the declared function are equal (as defined > by the eq operator) to the expanded QName and arity of another > function in function signatures. (maybe stupid, but so are the specs) So, there is only one solution if you want to use the same function name. Type the argument to the common supertype. Then, you can use a typeswitch instruction to define the user-defined processings (including type errors if you wish so). Cheers, p.b. |