Hi Buddy,
inspect:functions should help you out [1]; it’s similar to fn:load-xquery-module (which – Martin is right – is not available yet in BaseX).
Hope this helps Christian
PS: Please be patient, I’ll be offline most of next week.
[1] https://docs.basex.org/wiki/Inspection_Module#inspect:functions
Buddy Kresge buddy.kresge@known2u.com schrieb am So., 17. Mai 2020, 20:23:
Can’t tell if that parse-uri will then put things into the context such that a call to inspect:context() will return the functions loaded? Trying to run an interactive example with GUI, so maybe I’m doing something wrong?
Buddy Kresge buddy.kresge@known2u.com o: 860-800-6677 ext: 501 m: 860-986-4830
*From:* BaseX-Talk basex-talk-bounces@mailman.uni-konstanz.de on behalf of Martin Honnen martin.honnen@gmx.de *Sent:* Sunday, May 17, 2020 10:52:52 AM *To:* basex-talk@mailman.uni-konstanz.de < basex-talk@mailman.uni-konstanz.de> *Subject:* Re: [basex-talk] Runtime load of a module?
Am 17.05.2020 um 16:46 schrieb Buddy Kresge:
We have a situation where we have certain XQuery modules and we want to know if there is a way to load a module into BaseX at Run-time?
https://docs.basex.org/wiki/XQuery_Module#xquery:parse-uri seems to allow that.
The W3C library also defines https://www.w3.org/TR/xpath-functions/#func-load-xquery-module but I don't think BaseX supports that.