<?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>1921</bug_id>
          
          <creation_ts>2005-08-31 13:59:27 +0000</creation_ts>
          <short_desc>[XQuery] Disallow comments before encoding declaration</short_desc>
          <delta_ts>2005-09-27 16:11:19 +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>XPath 2.0</component>
          <version>Last Call drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</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 Kay">mike</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>5597</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2005-08-31 13:59:27 +0000</bug_when>
    <thetext>There appears to be nothing in the specification that prevents a comment from
appearing in the middle of, or before, the XQuery version declaration. Since it
is the version declaration that tells the parser what encoding is used, and
since a comment may contain arbitrary characters, this makes life unnecessarily
difficult for a &quot;pre-parser&quot; that is trying to detect the encoding. For example,
one can envisage a multi-byte encoding in which the sequence x3A x29 [ASCII :)]
is present but does not represent the end of a comment.

I propose a rule that if a version declaration is present, then there must be no
comments before or within the version declaration.

Michael Kay</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5613</commentid>
    <comment_count>1</comment_count>
    <who name="Paul Cotton">pcotton</who>
    <bug_when>2005-08-31 17:25:05 +0000</bug_when>
    <thetext>The XML Query WG would like this item discussed at a joint meeting since it 
refers to the rules for the valid usage of comments.

/paulc</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6507</commentid>
    <comment_count>2</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2005-09-27 16:10:42 +0000</bug_when>
    <thetext>Mike,
On Sept. 13, 2005, the XQuery group agreed to accept your suggestion. The next 
version of the XQuery specification will disallow comments before the end of 
the version declaration (if present). Since you are a member of the working 
group, I am marking this comment as fixed and closed.
Regards,
Don Chamberlin
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>