<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>28966</bug_id>
          
          <creation_ts>2015-07-19 02:22:07 +0000</creation_ts>
          <short_desc>[XQ31] Section 5.2.3: &quot;may only&quot;</short_desc>
          <delta_ts>2015-09-28 21:55:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3.1</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Kay">mike</reporter>
          <assigned_to name="Jonathan Robie">jonathan.robie</assigned_to>
          <cc>andrew_coleman</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>122212</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2015-07-19 02:22:07 +0000</bug_when>
    <thetext>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. &quot;MAY... ONLY&quot; here means &quot;MUST NOT.... EXCEPT&quot;. 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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>122993</commentid>
    <comment_count>1</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-09-01 16:14:15 +0000</bug_when>
    <thetext>I agree.

I believe this is editorial. Unless someone objects, I will make this change.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123070</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Coleman">andrew_coleman</who>
    <bug_when>2015-09-04 08:41:51 +0000</bug_when>
    <thetext>The Working Group agreed with this resolution at the joint teleconference on 2015-09-01.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>123349</commentid>
    <comment_count>3</comment_count>
    <who name="Jonathan Robie">jonathan.robie</who>
    <bug_when>2015-09-28 21:55:03 +0000</bug_when>
    <thetext>Fixed in the spec.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>