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
class itself.

** 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.
https://bugs.launchpad.net/bugs/948879

Title:
  --uri-path doesn't work with fetch:content()

Status in Zorba - The XQuery Processor:
  In Progress

Bug description:
  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:
https://bugs.launchpad.net/zorba/+bug/948879/+subscriptions

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to     : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp

Reply via email to