Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
line-o opened this issue Nov 17, 2021 · 0 comments
Open

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

line-o opened this issue Nov 17, 2021 · 0 comments
Labels

Comments

@line-o
Copy link
Contributor

line-o commented Nov 17, 2021

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants