<?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>4975</bug_id>
          
          <creation_ts>2007-08-21 22:57:20 +0000</creation_ts>
          <short_desc>Incorrect expected result for Constr-namespace-13</short_desc>
          <delta_ts>2007-09-17 11:50:02 +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>CLOSED</bug_status>
          <resolution>INVALID</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="John Snelson">john.snelson</reporter>
          <assigned_to name="Andrew Eisenberg">andrew.eisenberg</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>16238</commentid>
    <comment_count>0</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2007-08-21 22:57:20 +0000</bug_when>
    <thetext>The query is:

&lt;foo:elem xmlns:foo=&quot;http://www.example.com/parent&quot;&gt;&lt;child xmlns:foo=&quot;&quot;/&gt;&lt;/foo:elem&gt;

and the expected result is either err:XQST0085 or:

&lt;foo:elem xmlns:foo=&quot;http://www.example.com/parent&quot;&gt;&lt;child/&gt;&lt;/foo:elem&gt;

As far as I can see, the &quot;child&quot; element ought to have the xmlns:foo=&quot;&quot; attribute on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16472</commentid>
    <comment_count>1</comment_count>
    <who name="Andrew Eisenberg">andrew.eisenberg</who>
    <bug_when>2007-09-11 19:56:17 +0000</bug_when>
    <thetext>I believe that the expected result for this test case is correct.

XQuery 1.0 says, in section 3.7.1.2, Namespace Declaration Attributes, that:

&quot;If the namespace URI is a zero-length string and the implementation supports
[XML Names 1.1], any existing namespace binding for the given prefix is
removed from the in-scope namespaces of the constructed element and from the
statically known namespaces of the constructor expression.&quot;

and

&quot;A namespace declaration attribute does not cause an attribute node to be created.&quot;


So I believe that the &quot;child&quot; element does not have an in-scope namespace binding for &quot;foo&quot;.


Serialization, in section 5.1.7, XML Output Method: the undeclare-prefixes Parameter, says:

&quot;The Data Model allows an element node that binds a non-empty prefix to have
a child element node that does not bind that same prefix. In Namespaces in
XML 1.1 ([XML Names 1.1]), this can be represented accurately by undeclaring
prefixes. For the undeclaring prefix of the child element node, if the
undeclare-prefixes parameter has the value yes, the output method is XML or
XHTML, and the version parameter value is greater than 1.0, the serializer
MUST undeclare its namespace. If the undeclare-prefixes parameter has the
value no and the output method is XML or XHTML, then the undeclaration of
prefixes MUST NOT occur.&quot;


Finally, XQuery 1.0, in section C.3, Serialization Parameters, says that the value for undeclare-prefixes is &quot;no&quot;.


Please close this bug report if you agree with this resolution.


</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16609</commentid>
    <comment_count>2</comment_count>
    <who name="John Snelson">john.snelson</who>
    <bug_when>2007-09-17 11:49:41 +0000</bug_when>
    <thetext>I agree with this resolution, but note that XQuery serialization is an optional component which the products I am testing do not currently implement.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>