Hi Gerrit, > And it seems as if a user will able to submit the module URI and a function > name via RESTXQ and use this function even in an updating expression.
I guess we'll have to disallow the execution of updating functions. Otherwise, we cannot tell at compile time if an expression will be updating or not (this is a fundamental requirement of XQuery Update 1.0). > On 24.02.2014 18:32, Christian Grün wrote: >> >> Hi Jean-Philippe, >> >> we are still hesitant to implement a function that dynamically adds >> all imported functions to the static query context. Such an extension >> wouldn't allow us anymore to statically determine which of the >> functions that are used in the XQuery expression do actually exist, >> and which may be imported at runtime by an import-module call. >> >> However, we could add a function that returns a sequence of all >> functions declared in a specific module, and which could be browser >> for a specific function. I have added this idea (inspired by our team >> member Leo) and an example how to use it to GitHub [1]. >> >> Do you (and others) think that this solution would be a viable >> alternative to the util:import-module function from eXist? >> Christian >> >> [1] https://github.com/BaseXdb/basex/issues/872 >> >> >> >> On Mon, Feb 24, 2014 at 4:55 PM, Christian Grün >> <[email protected]> wrote: >>> >>> Hi Jean-Philippe, >>> >>>> when the evaluated >>>> expression yields function items. How should we understand this second >>>> limitation? Because modules precisely define functions... >>> >>> >>> This means that the result of a query may not be a function, as e.g. >>> in the following two examples: >>> >>> xquery:eval("true#0"), >>> xquery:eval("function() { 1 }") >>> >>> Hope this helps, >>> Christian >> >> _______________________________________________ >> >> BaseX-Talk mailing list >> [email protected] >> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk >> > > -- > Gerrit Imsieke > Geschäftsführer / Managing Director > le-tex publishing services GmbH > Weissenfelser Str. 84, 04229 Leipzig, Germany > Phone +49 341 355356 110, Fax +49 341 355356 510 > [email protected], http://www.le-tex.de > > Registergericht / Commercial Register: Amtsgericht Leipzig > Registernummer / Registration Number: HRB 24930 > > Geschäftsführer: Gerrit Imsieke, Svea Jelonek, > Thomas Schmidt, Dr. Reinhard Vöckler > > _______________________________________________ > BaseX-Talk mailing list > [email protected] > https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk _______________________________________________ BaseX-Talk mailing list [email protected] https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk

