W3C home > Mailing lists > Public > public-qt-comments@w3.org > November 2010

[Bug 11443] New: Expected results have an erroneous namespace declaration

From: <bugzilla@jessica.w3.org>
Date: Tue, 30 Nov 2010 18:57:54 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-11443-523@http.www.w3.org/Bugs/Public/>

           Summary: Expected results have an erroneous namespace
           Product: XML Query Test Suite
           Version: 1.0.3
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: benjie.nguyen@gmail.com
        ReportedBy: josh.spiegel@oracle.com
         QAContact: public-qt-comments@w3.org
             Group: XSLXQuery_WG

The following tests:

have an erroneous namespace declaration.  For example, consider test

   declare namespace a = "http://example.com/1";
   declare namespace b = "http://example.com/2";
   let $e := <e a:n1="content" b:n1="content">
                <?n1 ?>
   return $e/a:*

The current expected result is:
   <a:n1 xmlns:b="http://example.com/2" xmlns:a="http://example.com/1"/>

However, we think the expected result should be:
   <a:n1 xmlns:a="http://example.com/1"/>

See section 3.7.4
Bullet 1: doesn't apply as <a:n1> has no namespace declaration attributes
Bullet 2: doesn't apply as the enclosing <e> has no namespace declaration
Bullet 3: "xml" is always added
Bullet 4: causes "a" to be added as it is used in the element name of <a:n1>.  

Therefore, we think the declaration for "b" should not be part of the in-scope
namespaces of <a:n1>

Note, K2-InScopePrefixesFunc-25 only returns the prefix but the essential
problem is the same.

Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 30 November 2010 18:57:56 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:44 UTC