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 4194 - Static typing of validateexpr-10, validateexpr-11
Summary: Static typing of validateexpr-10, validateexpr-11
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-11 08:49 UTC by Tim Mills
Modified: 2007-09-14 12:54 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2007-01-11 08:49:53 UTC
The body of the validate expression is statically type checked as a zero-or-more sequence.  Our implementation is throwing a XQTY0030 error during type checking.  Could you please clarify whether this error should be thrown, or is that error code to be thrown only during evaluation?  If so, presumably XPTY0004 should be thrown by static typing implementations?




declare default element namespace "http://www.w3.org/XQueryTestOrderBy";

(: name : validateexpr-10 :)
(: description : Evaluation of a validate expression that a newly strict validat
ed node does not have a parent (read from a file).:)

(: insert-start :)
import schema "http://www.w3.org/XQueryTestOrderBy";
declare variable $input-context1 external;
(: insert-end :)

let $var := validate strict {$input-context1/DataValues/Strings}
return
  fn:count($var/parent::node())
Comment 1 Frans Englich 2007-09-14 09:34:52 UTC
A fix has been attempted in CVS, XQTS_current.zip is updated.

If the resolution is satisfactory, feel free to change status to CLOSED. Otherwise, reopen this report. If no feedback is returned within two weeks, status will be changed to CLOSED. Thanks for reporting!
Comment 2 Tim Mills 2007-09-14 12:54:44 UTC
Thanks.