This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 1963 - constr-cont-nsmode-1 is missing xmlns:p namespace declaration attribute
Summary: constr-cont-nsmode-1 is missing xmlns:p namespace declaration attribute
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.6.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Andreas Behm
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 22:20 UTC by Marc Van Cappellen
Modified: 2005-10-11 07:18 UTC (History)
0 users

See Also:


Attachments

Description Marc Van Cappellen 2005-09-01 22:20:27 UTC
The nsmode.xml file does have the following namespace declaration attribute on 
the <z:a> element: xmlns:p="http://www.example.com/p2.uri"

The expected output for constr-cont-nsmode-1 (both constr-cont-nsmode-1.xml and 
constr-cont-nsmode-1b.xml) doesn't expect this namespace declaration attribute.
As the query prolog specifies "declare copy-namespaces preserve, inherit;" we 
believe the expected output should include that specific namespace declaration 
attribute.
See http://www.w3.org/TR/xquery/#id-content,  1.e.ii.D.I and 1.e.ii.D.II

I.e. we expect output as follows:
<p xmlns:p="http://www.example.com/p.uri"><z:a 
xmlns:p="http://www.example.com/p2.uri" 
xmlns:z="http://www.example.com/z.uri"><b 
xmlns:y="http://www.example.com/y.uri" 
xmlns:z="http://www.example.com/z2.uri"/></z:a></p>
Comment 1 Andreas Behm 2005-09-30 19:38:43 UTC
After carefully reading the latest version of the spec, I agree with the
suggested result and included the namespace declaration attribute.