<?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>8480</bug_id>
          
          <creation_ts>2009-12-11 16:09:25 +0000</creation_ts>
          <short_desc>XQTS: CVS: comp-attr-bad-name-1 vs. K2-ComputeConAttr-38</short_desc>
          <delta_ts>2010-04-05 15:48:37 +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>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</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="Tim Mills">tim</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          <cc>frans.englich</cc>
    
    <cc>holstege</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>30085</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2009-12-11 16:09:25 +0000</bug_when>
    <thetext>Recently added test &apos;comp-attr-bad-name-1&apos;

(: 3.7.3.2 Computed Attribute Constructor per XQ.E19
   XQDY0044 if namespace prefix is &apos;xmlns&apos;
   Mary Holstege
 :)

(: insert-start :)
(: insert-end :)

&lt;result&gt;{attribute {&quot;xmlns:error&quot;} {}}&lt;/result&gt;

and older test K2-ComputeConAttr-38

  (:*******************************************************:)
  (: Test: K2-ComputeConAttr-38                            :)
  (: Written by: Frans Englich                             :)
  (: Date: 2007-11-22T11:31:21+01:00                       :)
  (: Purpose: This query yields XPST0081 because the prefix &apos;xmlns&apos; is unbound(
  #2). :)
  (:*******************************************************:)
  attribute {&quot;xmlns:localName&quot;} {&quot;content&quot;}

essentially test the same thing but expect different errors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>30231</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2009-12-22 21:24:23 +0000</bug_when>
    <thetext>comp-attr-bad-name-1 was written to test the effect of erratum XQ.E19. Our older test, K2-ComputeConAttr-38, should probably be updated to expect the same error.

Looking at our new rules in 3.7.3.2 Computed Attribute Constructors, I&apos;m concerned that some additional work on the spec is required. I&apos;ll report back after the WGs have considered this.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34553</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-04-05 15:45:49 +0000</bug_when>
    <thetext>In Bug #8537, the WGs determined that the changes for XQ.E19 had not been correctly applied to our PER document. The corrected text for section 3.7.3.2, Computed Attribute Constructors, will read, in part:

If the keyword attribute is followed by a name expression, the name
expression is processed as follows:

   1. ...
   2. ...
   3. If the atomized value of the name expression is of type xs:string or
      xs:untypedAtomic, ... If conversion of the atomized name expression
      to an expanded QName is not successful, a dynamic error is raised
      [err:XQDY0074].

A dynamic error is raised [err:XQDY0044] if the node-name of the constructed
attribute node has any of the following properties:

    * Its namespace prefix is xmlns. 
    * ...


In Bug #8500, we said that we would be liberal in accepting possible errors in our test cases.

Considering these two resolutions, I am changing both comp-attr-bad-name-1 and K2-ComputeConAttr-38 to accept both err:XQDY0074 and err:XQDY0044.

Please close this bug if you are satisfied with this resolution.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>