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 2513 - Space separation in results of fn-union-node-args-023
Summary: Space separation in results of fn-union-node-args-023
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.8.0
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Ravindranath (Ravi) Chennoju
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-12 16:51 UTC by Michael Kay
Modified: 2005-11-16 21:41 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2005-11-12 16:51:50 UTC
The query fn-union-node-args-023 returns a sequence of four text nodes. When a
sequence of four text nodes is serialized using the XML output method, no space
separator should be inserted between the values. However, in the published
results, the values of the four text nodes are shown space-separated.

I would suggest changing the query to remove this problem, e.g. to:

(($input-context//price) , ($input-context//price)) union
(($input-context//price) , ($input-context//price))

unless there is a specific intention to test application of the union operator
to text nodes, in which case it could be written

for $node in
(($input-context//price/text()) , ($input-context//price/text())) union
(($input-context//price/text()) , ($input-context//price/text()))
return <a>{$node}</a>

The same problem affects:

fn-intersect-node-args-023
fn-except-node-args-008
fn-except-node-args-022
Comment 1 Ravindranath (Ravi) Chennoju 2005-11-16 21:41:57 UTC
Changed the tests mentioned to use
for $node in .....
return <a> {$node} </a>