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 29584 - [QT3] () castable to list
Summary: [QT3] () castable to list
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Tim Mills
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-04-20 20:32 UTC by Michael Kay
Modified: 2016-04-25 16:26 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2016-04-20 20:32:01 UTC
I believe the result of the following test case should be false, not true:

   <test-case name="Castable-ListType-9" covers-30="cast-to-list">
       <description>Test castability of empty sequence to list type.</description>
       <created by="Tim Mills" on="2016-04-11"/>
       <environment ref="union-List-defined-Types"/>
       <dependency type="spec" value="XQ30+"/>
       <dependency type="feature" value="schemaImport"/>
       <test><![CDATA[
       import schema namespace s="http://www.w3.org/XQueryTest/unionListDefined";
        () castable as s:intListType1]]>
       </test>
       <result><assert-true /></result>
   </test-case>

The spec for castable to list says that the input must be a (single) string or untypedAtomic; it also says that an empty sequence is OK provided the type is written as T?.
Comment 1 Tim Mills 2016-04-25 16:26:51 UTC
Fixed in CVS.

Please mark as CLOSED if you agree with the resolution.