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 13216 - Expect result of the test Basics/EQNames/eqname-013.xq is incorrect
Summary: Expect result of the test Basics/EQNames/eqname-013.xq is incorrect
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-11 15:03 UTC by Nicolae Brinza
Modified: 2013-06-11 14:32 UTC (History)
1 user (show)

See Also:


Attachments

Description Nicolae Brinza 2011-07-11 15:03:13 UTC
The XQTS test Basics/EQName/eqname-013.xq:

<out xmlns="http://www.example.com/one">{
(<my:a xmlns:my="http://www.example.com/ns/my"><my:b>42</my:b><b xmlns="">93</b></my:a>) / "":* + 5 
}</out>

expects the result:

    <out>98</out>

while the correct result is:

    <out xmlns="http://www.example.com/one">98</out>


Either the expected result can be changed, or the xmlns declaration form the <out/> element can be removed to fix it.
Comment 1 Benjamin Nguyen 2011-07-11 15:49:54 UTC
(In reply to comment #0)
> The XQTS test Basics/EQName/eqname-013.xq:
> 
> <out xmlns="http://www.example.com/one">{
> (<my:a xmlns:my="http://www.example.com/ns/my"><my:b>42</my:b><b
> xmlns="">93</b></my:a>) / "":* + 5 
> }</out>
> 
> expects the result:
> 
>     <out>98</out>
> 
> while the correct result is:
> 
>     <out xmlns="http://www.example.com/one">98</out>
> 
> 
> Either the expected result can be changed, or the xmlns declaration form the
> <out/> element can be removed to fix it.

I agree with both solutions, I suggest changing the query, since I figure the namespace around the out element was not meant to be tested.
Comment 2 O'Neil Delpratt 2013-06-11 14:32:59 UTC
This bug has been fixed in QT3