<?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>1387</bug_id>
          
          <creation_ts>2005-05-11 07:40:54 +0000</creation_ts>
          <short_desc>[XQuery] some editorial comments on A.2.3 Comments</short_desc>
          <delta_ts>2007-02-25 23:54:07 +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>3414</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Dyck">jmdyck</who>
    <bug_when>2005-05-11 07:40:54 +0000</bug_when>
    <thetext>A.2.3 Comments

(whole section)
    I think the content of this section should be moved/merged either to A.1.1
    grammar-note: comments, or 2.6 Comments.  It appears to be just talking
    about ramifications of the Comment and CommentContents productions.  It
    isn&apos;t specifying the lexical structure of the language.

&quot;Comments are allowed to nest, though the content of a comment must have
balanced comment delimiters without regard to structure.&quot;
    I&apos;m not sure that &quot;balanced delimiters without regard to structure&quot; makes
    any sense. Doesn&apos;t &quot;balanced&quot; induce a structure? Would &quot;balanced delimiters
    *with* regard to structure&quot; or just &quot;balanced delimiters&quot; mean something
    different?

    And anyway, aren&apos;t balanced delimiters guaranteed by the fact that comments
    nest? In which case, &quot;though&quot; should be &quot;so&quot;.

&quot;It is a limitation of nested comments that literal content can cause unbalanced
nesting of comments.&quot;
    Comments don&apos;t have to nest to cause problems like this, they just have to
    have visible delimiters (as opposed to line-end comments): if you have a
    language with delimited comments, and you try to comment-out a chunk of
    text, there&apos;s the possibility that the text might already contain characters
    that are (or will become) a comment delimiter and screw things up.

    E.g., in C (where comments are delimited but do not nest),
        &quot;this is just a string */&quot;
    is a legal expression. But
        /* &quot;this is just a string */&quot; */
    will cause a syntax error. Mind you,
        /* &quot;this is just a string /*&quot; */
    isn&apos;t an error (unlike the corresponding construct in XQuery), though it&apos;ll
    probably get you a warning.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>4470</commentid>
    <comment_count>1</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-09 21:15:47 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; A.2.3 Comments
&gt; 
&gt; (whole section)
&gt;     I think the content of this section should be moved/merged either to A.1.1
&gt;     grammar-note: comments, or 2.6 Comments.  It appears to be just talking
&gt;     about ramifications of the Comment and CommentContents productions.  It
&gt;     isn&apos;t specifying the lexical structure of the language.

Would be OK with me, but it should be decided by Don at the upcoming F2F.

&gt; 
&gt; &quot;Comments are allowed to nest, though the content of a comment must have
&gt; balanced comment delimiters without regard to structure.&quot;
&gt;     I&apos;m not sure that &quot;balanced delimiters without regard to structure&quot; makes
&gt;     any sense. Doesn&apos;t &quot;balanced&quot; induce a structure? Would &quot;balanced delimiters
&gt;     *with* regard to structure&quot; or just &quot;balanced delimiters&quot; mean something
&gt;     different?
&gt; 
&gt;     And anyway, aren&apos;t balanced delimiters guaranteed by the fact that comments
&gt;     nest? In which case, &quot;though&quot; should be &quot;so&quot;.

&lt;p&gt;A comment can contain nested comments, as long as all &quot;(:&quot; and &quot;:)&quot; patterns
are balanced, no matter where they occur within the outer comment.&lt;/p&gt;

&gt; 
&gt; &quot;It is a limitation of nested comments that literal content can cause unbalanced
&gt; nesting of comments.&quot;
&gt;     Comments don&apos;t have to nest to cause problems like this, they just have to
&gt;     have visible delimiters (as opposed to line-end comments): if you have a
&gt;     language with delimited comments, and you try to comment-out a chunk of
&gt;     text, there&apos;s the possibility that the text might already contain characters
&gt;     that are (or will become) a comment delimiter and screw things up.
&gt; 
&gt;     E.g., in C (where comments are delimited but do not nest),
&gt;         &quot;this is just a string */&quot;
&gt;     is a legal expression. But
&gt;         /* &quot;this is just a string */&quot; */
&gt;     will cause a syntax error. Mind you,
&gt;         /* &quot;this is just a string /*&quot; */
&gt;     isn&apos;t an error (unlike the corresponding construct in XQuery), though it&apos;ll
&gt;     probably get you a warning.

Sure, though I&apos;ll leave it as it stands.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5173</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Boag">scott_boag</who>
    <bug_when>2005-07-22 20:25:45 +0000</bug_when>
    <thetext>A joint meeting of the Query and XSLT working groups considered this comment on 
July 20, 2005.  

The WG has agreed that the issue is resolved per my earlier reply to this issue,
and by removing the A.2.3 Comments section and putting it&apos;s contents into
grammar-note: comments.

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>14174</commentid>
    <comment_count>3</comment_count>
    <who name="Jim Melton">jim.melton</who>
    <bug_when>2007-02-25 23:54:07 +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>