This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
modules-17 includes modulesdiffns-lib.xq and expects the error XQST0048, i.e. a global variable is using a namespace different from the one used by the module. But the module body is module namespace defs ="http://www.w3.org/TestModules/diffns"; declare namespace foo = "http://example.org"; declare variable $defs1:var1 := 1; and this means that the error XPST0081 is reported because the defs1 prefix is undefined. In order to report XQST0048, the module should either have declare namespace defs1 = "http://example.org"; or declare variable $foo:var1 := 1;
Alberto: Your second suggestion was my original intention. Somehow the wrong version of the test was submitted. Resubmitted "modulesdiffns-lib.xq" that implements "declare variable $foo:var1 := 1;". Please close the bug if in agreement. Thanks, Carmelo
modulesdiffns-lib.xq still contains declare variable $defs1:var1 := 1; instead of declare variable $foo:var1 := 1;
Alberto: oops sorry forgot to commit this file. Please close if able to verify. Carmelo