XQXQ should set base URI of execution context
Bug #1133806 reported by
Chris Hillery
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Committed
|
Medium
|
Juan Zacarias |
Bug Description
import module namespace xqxq = "http://
variable $q := xqxq:prepare-
fn:static-
Assuming this query is saved in a file /tmp/foo.xq, this query returns
file:///tmp/foo.xq file:///
In other words, the static context's base-uri is unset by XQXQ.
I think a reasonable solution would be for XQXQ to call StaticContext:
Related branches
lp:~zorba-coders/zorba/bug1133806_xqxq_base_uri
- Chris Hillery: Approve
- Juan Zacarias: Approve
-
Diff: 60 lines (+9/-3)4 files modifiedmodules/zorba-query/zorba-query.xq.src/zorba-query.cpp (+3/-2)
src/runtime/core/fncall_iterator.cpp (+1/-1)
test/rbkt/ExpQueryResults/zorba/zorba-query/base-uri.xml.res (+1/-0)
test/rbkt/Queries/zorba/zorba-query/base-uri.xq (+4/-0)
Changed in zorba: | |
assignee: | nobody → Juan Zacarias (juan457) |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in zorba: | |
status: | Confirmed → In Progress |
Changed in zorba: | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
This information is not available for the module since the base URI present when the module takes action is the base URI of the module "http:// www.zorba- xquery. com/modules/ xqxq"
What I could do is add a parameter to set a base URI, or probably there could be a way to patch zorba to send the correct base URI to the module but that would be an ugly an invasive solution.