<?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>2610</bug_id>
          
          <creation_ts>2005-12-19 19:29:45 +0000</creation_ts>
          <short_desc>Is an invalid character reference a parse error?</short_desc>
          <delta_ts>2006-02-14 14:23:41 +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>Working drafts</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows 2000</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="Andreas Behm">abehm</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>7527</commentid>
    <comment_count>0</comment_count>
    <who name="Andreas Behm">abehm</who>
    <bug_when>2005-12-19 19:29:46 +0000</bug_when>
    <thetext>In the XML Query Test Task Force we are not sure wether the following query
should be a parser error or some other static error:

&lt;new&gt;&amp;#x0;&lt;/new&gt;

The following rule in the grammer applies:

[153]    	CharRef 	   ::=    	[http://www.w3.org/TR/REC-xml#NT-CharRef]

The XML standard refers to character references as:
[66]   	CharRef	   ::=   	&apos;&amp;#&apos; [0-9]+ &apos;;&apos;
			| &apos;&amp;#x&apos; [0-9a-fA-F]+ &apos;;&apos;

and in a side note restricts the value set:
&quot;Characters referred to using character references MUST match the production for
Char.&quot;
and &quot;Char&quot; excludes certain values:
[2]   	Char	   ::=   	#x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] |
[#x10000-#x10FFFF]


The question for XQuery is: does the side note restricting range for character
references in the XML standard propagate into a parse error in XQuery, or does
there need to be a seperate error defined for this scenario.

Test case Constr-cont-charref-2 applies.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8253</commentid>
    <comment_count>1</comment_count>
    <who name="Don Chamberlin">chamberl</who>
    <bug_when>2006-02-14 01:16:00 +0000</bug_when>
    <thetext>Andreas,
On 01 Feb 2006, the Query working group considered your comment and agreed that 
a character reference that is syntactically correct but does not identify a 
valid character should raise an error. The error code will be XQST0090 and the 
message will be &quot;Character reference does not identify a valid character in the 
version of XML that is in use.&quot; If you find this resolution acceptable, please 
mark the Bugzilla entry closed. If we do not hear from you, we will close the 
entry at the end of February 2006.
Regards,
Don Chamberlin (for the Query working group)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>8256</commentid>
    <comment_count>2</comment_count>
    <who name="Carmelo Montanez">carmelo</who>
    <bug_when>2006-02-14 14:23:41 +0000</bug_when>
    <thetext>Don:

I am taking over Andreas work for now.  Bug closed and correct code
used for test suite.  Thanks for the work.

Carmelo Montanez</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>