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

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22317

            Bug ID: 22317
           Summary: modules-19 through modules-24 might raise an
                    unexpected type error
    Classification: Unclassified
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: oneil@saxonica.com
        QA Contact: public-qt-comments@w3.org

This bug was initially created by Josh Spiegel against XQTS (See: #11432), but
needs addressing against FOTS. 

Bug details:

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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 10 June 2013 14:28:33 UTC