This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
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.
I believe the test case is ok. the yr element is untyped atomic, which is casted to hat:date2003 under the function conversion rules.
I am marking this test case as resolved fixed. Please reopen if you disagree with comment#1