<?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>1376</bug_id>
          
          <creation_ts>2005-05-11 07:30:29 +0000</creation_ts>
          <short_desc>[XQuery] some editorial comments on A.1.1 grammar-note: parens</short_desc>
          <delta_ts>2007-02-25 23:51:44 +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>grammar</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Dyck">jmdyck</reporter>
          <assigned_to name="Scott Boag">scott_boag</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>3401</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-05-11 07:30:29 +0000</bug_when>
    <thetext>A.1.1 grammar-note: parens

&quot;A look-ahead of one character is required to distinguish function patterns&quot;
    Change &quot;function patterns&quot; to &quot;a FunctionCall&quot;.

&quot;from a QName or keyword followed by a Pragma, or Comment&quot;
    Delete comma.

&quot;for (: whom the bell :) $tolls = 3 return $tolls&quot;
    This example is illegal. Change &quot;=&quot; to &quot;in&quot; ?

(this note)
    What&apos;s so special about this particular case that it deserves to be pointed
    out? There are lots of other cases that require lookahead (in a lookahead-
    based parser), and more lookahead than just one character. I think this
    grammar-note should be dropped.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2994</commentid>
    <comment_count>1</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-06-02 00:42:37 +0000</bug_when>
    <thetext>Quite correct.  The expression

  for (: whom the bell :) $tolls = 3 return $tolls

does appear to be illegal.  The suggested replacement
works fine.

I haven&apos;t analysed the grammar for lookahead requirements;
where do you believe longer lookahead to be required?
Are there any such places not now marked with angle
brackets?
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4424</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-07-07 00:54:42 +0000</bug_when>
    <thetext>Looking at this again, I think the text would do better to
describe the required lookahead not in terms of characters
but in terms of terminal symbols.  This unfortunately makes
the sentence clumsy:  &quot;A look-ahead of one terminal symbol
is required ...&quot;.  So perhaps just say &quot;Look-ahead is required ...&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4452</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-09 03:36:08 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; A.1.1 grammar-note: parens
&gt; 
&gt; &quot;A look-ahead of one character is required to distinguish function patterns&quot;
&gt;     Change &quot;function patterns&quot; to &quot;a FunctionCall&quot;.

Done.

&gt; 
&gt; &quot;from a QName or keyword followed by a Pragma, or Comment&quot;
&gt;     Delete comma.

Done.

&gt; 
&gt; &quot;for (: whom the bell :) $tolls = 3 return $tolls&quot;
&gt;     This example is illegal. Change &quot;=&quot; to &quot;in&quot; ?

Done.

&gt; 
&gt; (this note)
&gt;     What&apos;s so special about this particular case that it deserves to be pointed
&gt;     out? There are lots of other cases that require lookahead (in a lookahead-
&gt;     based parser), and more lookahead than just one character. I think this
&gt;     grammar-note should be dropped.

Since, with nested comments, you can no longer match &quot;foo(&quot; with a regular
expression, this case is not different.  The original issue is &quot;foo(:&quot; vs.
&quot;foo(&quot;.  But, I don&apos;t think this non-normative note is harmful, and I&apos;ll leave
it in unless someone wants to push on the matter.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4453</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-09 03:36:38 +0000</bug_when>
    <thetext>(In reply to comment #2)
So perhaps just say &quot;Look-ahead is required ...&quot;

Done.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5159</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-22 19:28:42 +0000</bug_when>
    <thetext>A joint meeting of the Query and XSLT working groups considered this comment on 
July 20, 2005.  

The WGs agreed to resolve these editorial issues as listed in my previous comment.

If you do not agree with this resolution, please add a comment explaining why.
If you wish to appeal the WG&apos;s decision to the Director, then change the Status
of the record to Reopened. If we do not hear from you in the next two weeks, we
will assume you agree with the WG decision.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14166</commentid>
    <comment_count>6</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:51:44 +0000</bug_when>
    <thetext>Closing bug because commenter has not objected to the resolution posted and more than two weeks have passed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>