xquery-intellij-plugin
xquery-intellij-plugin copied to clipboard
resolve imports of modules using the "resource:"-scheme
In eXist-db you can import XQuery modules using the "resource:" scheme.
This will ultimately resolve to a path in the filesystem relative to the current project.
My current understanding of this feature is that it resolves against <project-root>/src/main/resources as the base path.
Consider a module a in /path/to/my/project/src/test/xquery/modules/a.xqm
importing module b in /path/to/my/project/src/test/resources/b.xqm (that declares a function b:f)
This can be written as
import module namespace b="module/b" at "resource:b.xqm"
b:f()