<?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>6990</bug_id>
          
          <creation_ts>2009-06-02 15:42:39 +0000</creation_ts>
          <short_desc>missing error case err:XQDY0091 in Constr-attr-id-2</short_desc>
          <delta_ts>2009-06-03 12:53:07 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Query Test Suite</product>
          <component>XML Query Test Suite</component>
          <version>1.0.2</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>5275</dup_id>
          
          <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="Bogdan Butnaru">bogdanb+w3c+bugzilla</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          <cc>mike</cc>
          
          <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>25429</commentid>
    <comment_count>0</comment_count>
    <who name="Bogdan Butnaru">bogdanb+w3c+bugzilla</who>
    <bug_when>2009-06-02 15:42:39 +0000</bug_when>
    <thetext>Hello!

Please consider the following test case: 

&lt;test-case is-XPath2=&quot;false&quot; name=&quot;Constr-attr-id-2&quot;
  FilePath=&quot;Expressions/Construct/DirectConElem/DirectConElemAttr/&quot;
  scenario=&quot;standard&quot; Creator=&quot;Andreas Behm&quot;&gt;

  &lt;description&gt;Enclosed expression in attribute content - xml:id attribute 
    value must be further normalized.&lt;/description&gt;

  &lt;spec-citation spec=&quot;XQuery&quot; section-number=&quot;3.7.1.1&quot; 
    section-title=&quot;Attributes&quot; section-pointer=&quot;id-attributes&quot;/&gt;

  &lt;query name=&quot;Constr-attr-id-2&quot; date=&quot;2005-03-05&quot;/&gt;

  &lt;input-file role=&quot;principal-data&quot;
    variable=&quot;input-context&quot;&gt;emptydoc&lt;/input-file&gt;

  &lt;output-file role=&quot;principal&quot; compare=&quot;XML&quot;&gt;Constr-attr-id-2.xml&lt;/output-file&gt;

&lt;/test-case&gt;

The query is “&lt;elem xml:id=&quot;    a{&apos;b    c


d&apos;,&apos;        &apos;}&quot;/&gt;” (note that some of the whitespace might be transformed by the browser).

The expected result is “&lt;elem xml:id=&quot;ab c d&quot;/&gt;”. There are no expected errors, although a file named “Constr-attr-id-2.log” in the same directory contains the (non-existent) error code “err:XQST0083
”; this file is not referenced anywhere in the catalog.

However, the cited section reads “If an error is encountered during xml:id processing, an implementation MAY raise a dynamic error [err:XQDY0091].” If my reading of http://www.w3.org/TR/xml-id/#processing is correct, one such error may be raised in the value of the attribute is not a valid NCName.

The value of the attribute in the given query is &quot;ab c d&quot;, which is not a NCName because it contains spaces.

Thus, unless I&apos;m missing something, a conforming implementation is allowed to raise err:XQDY0091 for this test-case, and “&lt;ts:expected-error&gt;XQDY0091&lt;/ts:expected-error&gt;” should be added to the test case.

(By the way, err:XQDY0091 is not mentioned anywhere else in the test catalog.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25430</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2009-06-02 16:07:13 +0000</bug_when>
    <thetext>In the CVS version of the test suite, the test does indeed have the error XQDY0091 as an expected outcome.

This appears to be a duplicate of bug #5275</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>25442</commentid>
    <comment_count>2</comment_count>
    <who name="Bogdan Butnaru">bogdanb+w3c+bugzilla</who>
    <bug_when>2009-06-03 12:53:07 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This appears to be a duplicate of bug #5275

Yes, sorry. I searched for “Constr-attr-id-2” and I got no results, probably because the implicit settings search only for open bugs.

*** This bug has been marked as a duplicate of bug 5275 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>