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 11432 - modules-19 through modules-24 might raise an unexpected type error
Summary: modules-19 through modules-24 might raise an unexpected type error
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.3
Hardware: All Windows 3.1
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-30 01:40 UTC by Josh Spiegel
Modified: 2014-11-19 17:07 UTC (History)
0 users

See Also:


Attachments

Description Josh Spiegel 2010-11-30 01:40:53 UTC
The following tests:
   modules-19
   modules-20
   modules-21
   modules-22
   modules-23
   modules-24

Might raise an unexpected type error due to a seemingly unintended problem in TestSources/module3-lib.xq.  This module declares the variable $mod3:var2 as follows:

declare variable $mod3:var2 as schema-element(simple:integer) := <simple:integer>1</simple:integer>;

I think an implementation may raise a type error in this case.  The solution may be to add a validate expression around the initializer.  e.g.

declare variable $mod3:var2 as schema-element(simple:integer) := validate { <simple:integer>1</simple:integer> };
Comment 1 Josh Spiegel 2014-11-19 17:07:42 UTC
This appears to be fixed now.