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?
As a hypothetical example
If (some condition) Load module X into Basex else Load module Y into Basex
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.
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.
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.
If I do an “inspect:functions”, those functions though are not available/seen if I do a subsequent call to inspect:context(), correct?
Buddy Kresge buddy.kresge@known2u.commailto:buddy.kresge@known2u.com o: 860-800-6677 ext: 501 c: 860-986-4830
From: Christian Grün christian.gruen@gmail.com Sent: Sunday, May 17, 2020 3:09 PM To: Buddy Kresge buddy.kresge@known2u.com Cc: Martin Honnen martin.honnen@gmx.de; BaseX basex-talk@mailman.uni-konstanz.de Subject: Re: [basex-talk] Runtime load of a module?
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.commailto: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.commailto:buddy.kresge@known2u.com o: 860-800-6677 ext: 501 m: 860-986-4830 ________________________________ From: BaseX-Talk <basex-talk-bounces@mailman.uni-konstanz.demailto:basex-talk-bounces@mailman.uni-konstanz.de> on behalf of Martin Honnen <martin.honnen@gmx.demailto:martin.honnen@gmx.de> Sent: Sunday, May 17, 2020 10:52:52 AM To: basex-talk@mailman.uni-konstanz.demailto:basex-talk@mailman.uni-konstanz.de <basex-talk@mailman.uni-konstanz.demailto: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.
basex-talk@mailman.uni-konstanz.de