- From: <bugzilla@jessica.w3.org>
- Date: Tue, 30 Nov 2010 18:57:54 +0000
- To: public-qt-comments@w3.org
http://www.w3.org/Bugs/Public/show_bug.cgi?id=11443
Summary: Expected results have an erroneous namespace
declaration
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:
K2-NameTest-30
K2-NameTest-31
K2-InScopePrefixesFunc-25
have an erroneous namespace declaration. For example, consider test
K2-NameTest-31:
declare namespace a = "http://example.com/1";
declare namespace b = "http://example.com/2";
let $e := <e a:n1="content" b:n1="content">
<a:n1/>
<b:n1/>
<?n1 ?>
<n1/>
</e>
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
(http://www.w3.org/TR/2009/PER-xquery-20090421/#id-ns-nodes-on-elements).
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
attributes
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