<?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>10432</bug_id>
          
          <creation_ts>2010-08-25 15:39:39 +0000</creation_ts>
          <short_desc>alternative result for namespace-errors-q16 test</short_desc>
          <delta_ts>2010-09-28 16:35:35 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XQuery Update Facility Test Suite</product>
          <component>XQuery Update Facility Test Suite</component>
          <version>1.0.1</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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="Markos Zaharioudakis">markos_za</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</assigned_to>
          <cc>mike</cc>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>37845</commentid>
    <comment_count>0</comment_count>
    <who name="Markos Zaharioudakis">markos_za</who>
    <bug_when>2010-08-25 15:39:39 +0000</bug_when>
    <thetext>The reference result for the namespace-errors-q16 test adds a namespace declaration attribute (xmlns=&quot;&quot;) to un-declare the defaule element namespace binding. This attribute is added in the &lt;PhD&gt; node. However, it could also be added on the parent of that node. Specifically, the attached file is also a valid result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37846</commentid>
    <comment_count>1</comment_count>
      <attachid>912</attachid>
    <who name="Markos Zaharioudakis">markos_za</who>
    <bug_when>2010-08-25 15:42:57 +0000</bug_when>
    <thetext>Created attachment 912
alternative result for test namespace-errors-q16</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38265</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-08-30 22:59:11 +0000</bug_when>
    <thetext>Please note for reference that this is related to bug #9432 and bug #9312.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38268</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-08-30 23:15:51 +0000</bug_when>
    <thetext>Personal response: I think this bug is invalid - that is, the proposed alternative result is not a legitimate result.

(However, it&apos;s difficult to be definitive until we see the changed wording introduced as a result of the resolution of bug #9432).

propagate-namespace() adds a namespace binding (prefix, uri) to all child elements that do not already have a binding for that prefix, and then calls propagate namespace on that child element so it propagates down the tree. The effect of bug 9312/9432 is to extend the meaning of &quot;do not already have a binding for that prefix&quot; so that elements whose name is unprefixed are considered for this purpose to have a binding for the prefix &quot;&quot; even if it is a binding to no namespace.

So in this case the namespace binding (&quot;&quot;, &quot;http://www.example.com/test&quot;) must be propagated to the univ:lab element, and must not be propagated to the PhD element. The proposed alternative result has xmlns=&quot;&quot; on the univ:lab element, which means the namespace binding (&quot;&quot;, &quot;http://www.example.com/test&quot;) has not been propagated to this element, as the [yet to be written] spec requires.

Michael Kay
Saxonica</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38338</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-08-31 16:10:32 +0000</bug_when>
    <thetext>It looks as if my comment #3 may have been based on an incorrect recollection of how we decided to resolve bug #9432. The decision on that bug is recorded in the Minutes of the Oxford F2F meeting: the decision recorded there was not to propagate the binding (&quot;&quot;, &quot;xyz&quot;), whereas my recollection was that it should be propagated, but only so far as an element whose name is unprefixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38350</commentid>
    <comment_count>5</comment_count>
    <who name="Markos Zaharioudakis">markos_za</who>
    <bug_when>2010-08-31 20:40:31 +0000</bug_when>
    <thetext>Given comment #4, what I reported here as a valid alternative result is actually the only valid result, and the current result in XQUTS is wrong. Right?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38352</commentid>
    <comment_count>6</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2010-08-31 20:51:16 +0000</bug_when>
    <thetext>Yes. I&apos;d prefer to wait until I see final text for the bug #9432 resolution, but from today&apos;s discussion it&apos;s looking as if your proposed result for namespace-errors-q16 will be the only acceptable result.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39317</commentid>
    <comment_count>7</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2010-09-24 22:05:52 +0000</bug_when>
    <thetext>The final text for the Bug #9432 has been entered. I have changed the expected result of this test case to the alternative that has been provided, as was suggested in comment #5.

Markos, please close this bug report if you agree with this resolution.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>912</attachid>
            <date>2010-08-25 15:42:57 +0000</date>
            <delta_ts>2010-08-25 15:42:57 +0000</delta_ts>
            <desc>alternative result for test namespace-errors-q16</desc>
            <filename>namespace-errors-q16.res</filename>
            <type>application/octet-stream</type>
            <size>889</size>
            <attacher name="Markos Zaharioudakis">markos_za</attacher>
            
              <data encoding="base64">PG15Z3JhbnQgeG1sbnM6bmFyYT0iaHR0cDovL3d3dy5hbnIuZnIvbmFyYSIgeG1sbnM9Imh0dHA6
Ly93d3cuZXhhbXBsZS5jb20vdGVzdCI+IAogIDxuYXJhOmxhYiB4bWxucz0iIiBuYW1lPSJBZ3Jv
UGx1cyI+IAogICAgIDxuYXJhOmFkZHJlc3M+U2FjbGF5LCBGcmFuY2U8L25hcmE6YWRkcmVzcz4g
CiAgICAgPG5hcmE6cmVzZWFyY2hlciByaWQ9InIxIiBuYW1lPSJGcmVkIiBwb3NpdGlvbj0idGVj
aG5pY2FsIHN0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