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 28966 - [XQ31] Section 5.2.3: "may only"
Summary: [XQ31] Section 5.2.3: "may only"
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3.1 (show other bugs)
Version: Last Call drafts
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: Jonathan Robie
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-19 02:22 UTC by Michael Kay
Modified: 2015-09-28 21:55 UTC (History)
1 user (show)

See Also:


Attachments

Description Michael Kay 2015-07-19 02:22:07 UTC
Section 5.2.3 (Static Typing Feature) says:

If an implementation does not provide the Static Typing Feature, then it MAY report type errors during the static analysis phase only in cases where the inferred static type and the required type have an empty intersection (that is, where evaluation of the expression is guaranteed to fail). It MAY defer some or all type checking until the dynamic evaluation phase.

The use of an RFC MAY here is very misleading. The sentence is not intended to be permissive, it is intended as a constraint. "MAY... ONLY" here means "MUST NOT.... EXCEPT". I suggest:

If an implementation does not provide the Static Typing Feature, then it MUST NOT report type errors during the static analysis phase except in cases where the inferred static type and the required type have an empty intersection (that is, where evaluation of the expression is guaranteed to fail). It MAY defer some or all type checking until the dynamic evaluation phase.
Comment 1 Jonathan Robie 2015-09-01 16:14:15 UTC
I agree.

I believe this is editorial. Unless someone objects, I will make this change.
Comment 2 Andrew Coleman 2015-09-04 08:41:51 UTC
The Working Group agreed with this resolution at the joint teleconference on 2015-09-01.
Comment 3 Jonathan Robie 2015-09-28 21:55:03 UTC
Fixed in the spec.