Hi Rob,

Feel free to provide us with a minimized code snippet to reproduce the
problem. You could also try fn:load-xquery-module [1] that has recently
been added to BaseX (thanks to Gunther Rademacher):

https://qt4cg.org/specifications/xpath-functions-40/Overview.html#func-load-xquery-module

Best,
Christian


On Sat, Apr 26, 2025 at 1:33 PM Rob Stapper via BaseX-Talk <
[email protected]> wrote:

> Hi,
>
> I want to make use the 'inspect:functions'-function but whatever I do I
> always get this error:
> ' [inspect:parse] Stopped at
> C:/Users/Rob/Projecten/SemanticWorldModel/repo/SWM.main/content/IMPLEMENTATION-DOMAIN/reverseArrayIterator.xqm,
> 4/27: [XQST0049] Duplicate declaration of static variable .........'
>
> It looks like the function traverse all through the module structure
> following the module imports. And when it encouters a cyclic situation,
> which is not abnormal within a module structure, the function trigers this
> error. I think it should just stop on that branche because obviously the
> model has already been processed.
>
> Maybe even, the function should not iterate through the module structure
> at all, just returning the functions of the requested module.
>
> Maybe I'm just doing things wrong here. Can you please shed some light on
> how to prevent this error when using 'inspect:functions'?
>
> Some background for this madness:
> I want to annotate my FunctionDataStructure, dataStructures as
> functioncallparameterset, with the name of the module that contains the
> functions for this type/class of data (class and methods in OO).
>
> Thanks in advance for your responce.
>
> mvgr.
>
> Rob Stapper
>
>

Reply via email to