Project

Profile

Help

specify default xquery module path in Saxon?

Added by Anonymous over 16 years ago

Legacy ID: #5104007 Legacy Poster: y10k (y10k)

Is there a way to specify the default xquery module path in Saxon? I am using the s9 API. What I am trying to do is : import module namespace effort = "http://xxx" at "effort.xq"; I have different versions of effort.xq in different folders. I would like to choose which one dynamically by specifying the base path in Java. Thanks!


Replies (1)

RE: specify default xquery module path in Sax - Added by Anonymous over 16 years ago

Legacy ID: #5104608 Legacy Poster: Michael Kay (mhkay)

There's no concept of a search path in the way that Saxon resolves module location URIs (or any other relative URIs, for that matter) - though I think it could be a useful idea, it doesn't fit too well into the RFC rules for interpreting URIs. You can of course do this by writing your own ModuleURIResolver, which you can specify using XQueryCompiler.setModuleURIResolver(). Michael Kay http://www.saxonica.com/

    (1-1/1)

    Please register to reply