<?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>1369</bug_id>
          
          <creation_ts>2005-05-11 07:15:15 +0000</creation_ts>
          <short_desc>[XQuery] some editorial comments on 3.4 Arithmetic Expressions</short_desc>
          <delta_ts>2005-07-01 00:40: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 1.0</component>
          <version>Last Call drafts</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Don Chamberlin">chamberl</assigned_to>
          
          
          <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>3502</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-05-11 07:15:15 +0000</bug_when>
    <thetext>3.4 Arithmetic Expressions

&quot;A subtraction operator must be preceded by whitespace if it could otherwise be
interpreted as part of the previous token. For example, a-b will be interpreted
as a name, but a - b and a -b will be interpreted as arithmetic operations.&quot;
    Change &quot;operations&quot; to &quot;expressions&quot;.

    The phrase &quot;could otherwise&quot; is vague. For instance, consider the query:
        a- b
    There&apos;s only one way to derive these characters from Expr (the &quot;a minus b&quot;
    way). That is, there isn&apos;t a legal way to interpret the &apos;-&apos; as part of the
    previous token. So one could say that the &quot;could otherwise be interpreted&quot;
    clause does not hold, and conclude that the hyphen needn&apos;t be preceded by
    whitespace. This is presumably not what you want, since the first example
    in A.2.2.1 says that
        foo- foo
    is a syntax error.
    It might suffice to tack on something like &quot;See section [blah] for full
    details regarding the use of whitespace.&quot; which at least conveys that the
    sentences in question don&apos;t give a complete statement.

    Maybe put the sentences in a Note.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4406</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-07-01 00:39:45 +0000</bug_when>
    <thetext>Michael,
Thanks for your thorough reading and comments. Since you have labeled these 
suggestions as editorial, I have exercised some discretion and applied them 
where I found them helpful.
Regards,
Don Chamberlin
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>