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 21339 - error in function hat:purchase from xmod040a.xq
Summary: error in function hat:purchase from xmod040a.xq
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-19 16:52 UTC by Sorin Nasoi
Modified: 2013-05-02 10:09 UTC (History)
0 users

See Also:


Attachments

Description Sorin Nasoi 2013-03-19 16:52:25 UTC
http://dev.w3.org/cvsweb/2011/QT3-test-suite/prod/SchemaImport/xmod040a.xq?rev=1.1;content-type=text%2Fplain

declare function hat:purchase ($x as hat:hatsize) as hat:date2003 {
<yr> { ('2003-06-30' cast as hat:date2003) }</yr>
};

should be corrected to:

declare function hat:purchase ($x as hat:hatsize) as hat:date2003 {
('2003-06-30' cast as hat:date2003)
};

in order to correct test cases 'qischema040' and 'qischema040a' from 
http://dev.w3.org/cvsweb/2011/QT3-test-suite/prod/SchemaImport.xml?rev=1.15;content-type=text%2Fplain
that are using the above mentioned function.
Comment 1 O'Neil Delpratt 2013-05-01 13:27:04 UTC
I believe the test case is ok. the yr element is untyped atomic, which is casted to hat:date2003 under the function conversion rules.
Comment 2 O'Neil Delpratt 2013-05-02 10:09:07 UTC
I am marking this test case as resolved fixed. Please reopen if you disagree with comment#1