<?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>1412</bug_id>
          
          <creation_ts>2005-05-13 20:21:04 +0000</creation_ts>
          <short_desc>[XQuery] Grammar: Allowing comments between $ and QName</short_desc>
          <delta_ts>2005-09-29 11:05:29 +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>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>grammar</status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Rys">mrys</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>3341</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Rys">mrys</who>
    <bug_when>2005-05-13 20:21:04 +0000</bug_when>
    <thetext>The current grammar seems to allow whitespaces and especially comments between 
the $ and the QName. Can the grammar please locally be written such that the 
Variable name is clearly identified as $QName and comments are not allowed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>3348</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-05-13 20:43:04 +0000</bug_when>
    <thetext>This comment has been made a number of times, and I&apos;ve never understood the
rationale for it. We allow whitespace after the @ in @att, and before the &quot;(&quot; in
text(), in fact everywhere where names appear adjacent to punctuation symbols.
Why make an exception for this one?

XPath 1.0 had this restriction, as it happens, and I was very pleased to delete
the dozen lines of contorted code in my parser that enforced it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5009</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2005-07-20 17:07:15 +0000</bug_when>
    <thetext>The only plausible way to make this change would be to make
VariableReference a token type.  (The only alternative I can
think of is an ad hoc rule, which lacks motivation.)

That would involve changes to productions 5 and 6, which is
not too onerous.  But it would also mean having a token type
with significant internal structure, and the rules for 
QNames (both syntactic and semantic) would have to be
either repeated between the token grammar and the main grammar
or else those rules have to be shared between the grammars,
which seems like a violation of modularity.

I think the general principle that tokens should be treatable
as atoms suffices to lead us to reject this proposal.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5175</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-22 20:34:06 +0000</bug_when>
    <thetext>A joint meeting of the Query and XSLT working groups considered this comment on 
July 20, 2005.  

The WG has concensus that we do not wish to make a change.

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>
      
      

    </bug>

</bugzilla>