W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2010

[Bug 11432] New: modules-19 through modules-24 might raise an unexpected type error

From: <bugzilla@jessica.w3.org>
Date: Tue, 30 Nov 2010 01:40:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-11432-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11432

           Summary: modules-19 through modules-24 might raise an
                    unexpected type error
           Product: XML Query Test Suite
           Version: 1.0.3
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: josh.spiegel@oracle.com
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG


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> };

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 30 November 2010 01:40:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:08 GMT