Hi,
I have used
EXPath packaging, often to package some Java code and a calling xquery module [1].
>the URL of the expath-pkg.xml library module which will be imported from outside must match the name of the package
In my experience this is not required, see [2] for example.
I think the problem may be that only the first xquery referenced in
expath-pkg works.
I believe your example should work.
One
problem I had when trying to use the repository feature for more
complex packaging occurs when the package exposes some xqm and that xqm
imports a utility library xqm that is in the package, but not exposed
in the
expath-pkg.xml, and the Xquery that imports the packaged xqm also
imports a different version of the utility library.
Conflicts can arise between the two versions. They should be isolated [3]
/Andy