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 10432 - alternative result for namespace-errors-q16 test
Summary: alternative result for namespace-errors-q16 test
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: Andrew Eisenberg
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-25 15:39 UTC by Markos Zaharioudakis
Modified: 2010-09-28 16:35 UTC (History)
1 user (show)

See Also:


Attachments
alternative result for test namespace-errors-q16 (889 bytes, application/octet-stream)
2010-08-25 15:42 UTC, Markos Zaharioudakis
Details

Description Markos Zaharioudakis 2010-08-25 15:39:39 UTC
The reference result for the namespace-errors-q16 test adds a namespace declaration attribute (xmlns="") to un-declare the defaule element namespace binding. This attribute is added in the <PhD> node. However, it could also be added on the parent of that node. Specifically, the attached file is also a valid result.
Comment 1 Markos Zaharioudakis 2010-08-25 15:42:57 UTC
Created attachment 912 [details]
alternative result for test namespace-errors-q16
Comment 2 Michael Kay 2010-08-30 22:59:11 UTC
Please note for reference that this is related to bug #9432 and bug #9312.
Comment 3 Michael Kay 2010-08-30 23:15:51 UTC
Personal response: I think this bug is invalid - that is, the proposed alternative result is not a legitimate result.

(However, it's difficult to be definitive until we see the changed wording introduced as a result of the resolution of bug #9432).

propagate-namespace() adds a namespace binding (prefix, uri) to all child elements that do not already have a binding for that prefix, and then calls propagate namespace on that child element so it propagates down the tree. The effect of bug 9312/9432 is to extend the meaning of "do not already have a binding for that prefix" so that elements whose name is unprefixed are considered for this purpose to have a binding for the prefix "" even if it is a binding to no namespace.

So in this case the namespace binding ("", "http://www.example.com/test") must be propagated to the univ:lab element, and must not be propagated to the PhD element. The proposed alternative result has xmlns="" on the univ:lab element, which means the namespace binding ("", "http://www.example.com/test") has not been propagated to this element, as the [yet to be written] spec requires.

Michael Kay
Saxonica
Comment 4 Michael Kay 2010-08-31 16:10:32 UTC
It looks as if my comment #3 may have been based on an incorrect recollection of how we decided to resolve bug #9432. The decision on that bug is recorded in the Minutes of the Oxford F2F meeting: the decision recorded there was not to propagate the binding ("", "xyz"), whereas my recollection was that it should be propagated, but only so far as an element whose name is unprefixed.
Comment 5 Markos Zaharioudakis 2010-08-31 20:40:31 UTC
Given comment #4, what I reported here as a valid alternative result is actually the only valid result, and the current result in XQUTS is wrong. Right?
Comment 6 Michael Kay 2010-08-31 20:51:16 UTC
Yes. I'd prefer to wait until I see final text for the bug #9432 resolution, but from today's discussion it's looking as if your proposed result for namespace-errors-q16 will be the only acceptable result.
Comment 7 Andrew Eisenberg 2010-09-24 22:05:52 UTC
The final text for the Bug #9432 has been entered. I have changed the expected result of this test case to the alternative that has been provided, as was suggested in comment #5.

Markos, please close this bug report if you agree with this resolution.