The problem is not related to the fetch module. This module uses the
right static context. However, the problem is that the fetch function of
the XmlDataManager in the C++ api uses the root static context to fetch
resources. Instead, it should use a user-provided static context.
Alternatively, the fetch function could be moved into the StaticContext
** Changed in: zorba
Status: New => In Progress
You received this bug notification because you are a member of Zorba
Coders, which is the registrant for Zorba.
--uri-path doesn't work with fetch:content()
Status in Zorba - The XQuery Processor:
The zorbacmd command-line arguments --uri-path, --lib-path, and
--module-path modify the StaticContext that runs the query. However,
if this query invokes the fetch module, the invocation of
fetch:content() is in a separate StaticContext that does not inherit
those paths. The upshot is that you can't fetch content from any
custom paths, only the built-in Zorba paths.
To manage notifications about this bug go to:
Mailing list: https://launchpad.net/~zorba-coders
Post to : firstname.lastname@example.org
Unsubscribe : https://launchpad.net/~zorba-coders
More help : https://help.launchpad.net/ListHelp