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 10422 - Wrong expected results in propagateNamespaces tests
Summary: Wrong expected results in propagateNamespaces tests
Status: CLOSED FIXED
Alias: None
Product: XQuery Update Facility Test Suite
Classification: Unclassified
Component: XQuery Update Facility Test Suite (show other bugs)
Version: 1.0.1
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Josh Spiegel
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 00:35 UTC by Markos Zaharioudakis
Modified: 2010-08-26 21:41 UTC (History)
2 users (show)

See Also:


Attachments

Description Markos Zaharioudakis 2010-08-25 00:35:05 UTC
I believe the expected results for the following tests are wrong:

propagateNamespaces03
propagateNamespaces04

In these tests, the copy-namespaces mode is set to no-preserve, and as a result,
when the <v> node is copied to the $data variable, all the namespace declaration attributes are stripped out. Similarly, when the <w> node (and its subtree) is copied as part of the insert expression, all the namespace declaration attributes are stripped out from that subtree. Therefore, the result of the query should not contain any namespace declaration attributes, i.e., it should look like this:

<result>
  <w/>
  <x/>
  <y/>
  <z/>
</result>
Comment 1 Josh Spiegel 2010-08-25 19:45:29 UTC
I think Markos is correct and that we should update the results as he suggests.
Comment 2 Michael Kay 2010-08-25 23:09:27 UTC
Reluctantly, I agree with this conclusion.
Comment 3 Andrew Eisenberg 2010-08-26 21:40:59 UTC
I have changed the results for the two test cases as was suggested by the commentor.