Hi Max,

I don't think the spec requires BaseX to be able to handle the same
namespace for files in the repository folder, as a construct as our
repo/ folder isn't specified within the spec. You should be able to
access modules with the same namespace using the "at" keyword to specify
a concrete location, so I think BaseX is conformant to the spec.

However, this doesn't not seem to be what you want. Actually, I am not
sure how this could be achieved. This would only be possible if we would
decouple the namespace URI from the folder structure, which seems
unlikely to me.

Maybe you can use eval() or you could at least already have an empty
module file, which you could import from your actual query? I don't
really have good solution for this, so maybe Christian want to follow up
on this one.

Best wishes,
Dirk

On 09/04/14 22:21, Maximilian Gärber wrote:
> Hi,
> 
> as far as I understand
> http://www.w3.org/TR/xquery-30/#id-module-handling-multiple-same
> it should be possible to have more than one module (-> file) with the
> same target namespace inside the "repo" folder
> 
> This seems not possible at the moment because the .xqm file has to
> have a name according to the target namespace
> 
> I would like to use function-lookup to access functions that might be
> added at runtime (new file, but the target namespace would be
> pre-defined)
> 
> 
> Regards,
> 
> Max
> 

-- 
Dirk Kirsten, BaseX GmbH, http://basex.org
|-- Firmensitz: Blarerstrasse 56, 78462 Konstanz
|-- Registergericht Freiburg, HRB: 708285, Geschäftsführer:
|   Dr. Christian Grün, Dr. Alexander Holupirek, Michael Seiferle
`-- Phone: 0049 7531 28 28 676, Fax: 0049 7531 20 05 22

Reply via email to