xquery-intellij-plugin icon indicating copy to clipboard operation
xquery-intellij-plugin copied to clipboard

resolve imports of modules using the "resource:"-scheme

Open line-o opened this issue 3 years ago • 0 comments

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()

line-o avatar Nov 17 '21 21:11 line-o