This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3136 - Wrong error expected in modules-17
Summary: Wrong error expected in modules-17
Status: VERIFIED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-21 15:16 UTC by Alberto Massari
Modified: 2006-06-15 10:16 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2006-04-21 15:16:16 UTC
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;
Comment 1 Carmelo Montanez 2006-04-21 15:36:36 UTC
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
Comment 2 Alberto Massari 2006-06-14 18:40:08 UTC
modulesdiffns-lib.xq still contains 

  declare variable $defs1:var1 := 1;

instead of 

  declare variable $foo:var1 := 1;
Comment 3 Carmelo Montanez 2006-06-14 19:56:28 UTC
Alberto:

oops sorry forgot to commit this file.  Please close if able to verify.

Carmelo