undeclared variable in built-in module if called through invoke
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zorba |
Fix Released
|
Critical
|
Markos Zaharioudakis |
Bug Description
[err:XPDY0002]: "r:foo": undeclared variable is raised for the following scenario.
-------
A built-in module such as random declares a variable as follows:
declare variable $r:foo := 1;
-------
A library module foo declares a variable and accesses $r:foo in a function.
module namespace foo = "http://
import module namespace r = 'http://
declare variable $foo:blub := 1;
declare function foo:bar()
{
$r:foo
};
-------
A main module imports the library module foo and invokes the function foo:bar()
import module namespace invoke = 'http://
import module namespace foo = "http://
invoke:invoke-s ( fn:QName ( 'http://
Changed in zorba: | |
status: | New → Fix Committed |
Changed in zorba: | |
status: | Fix Committed → Fix Released |