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 8378 - [XQFTTS] Whitespace issues in expected results
Summary: [XQFTTS] Whitespace issues in expected results
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: Full Text 1.0 (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Jim Melton
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-25 16:46 UTC by Peter M. Fischer
Modified: 2011-01-05 23:11 UTC (History)
1 user (show)

See Also:


Attachments

Description Peter M. Fischer 2009-11-25 16:46:38 UTC
In the CVS version of the XQFTTS (as of 2009-11-25), I found a number of cases with whitespace issues:

examples-23-q3
examples-23-q4

The expected results should allow for different order (as this a scoring case) and the presence of whitespace between the top-level elements (or not) - in total 4 results. The provided results contain one order with whitespaces, the other one without, so in total just 2.

examples-37-1

The expected result contains whitespace (newline, intendation) between the contents of the <result> tag - as the boundary whitespace mode is not changed from the default (strip), this whitespace should not be present

FTIgnore-q1, FTIgnore-q3, FTIgnore-q4, FTIgnore-unconstrained-q1, FTIgnore-unconstrained-q3, FTIgnore-unconstrained-q4

Expected result contain newlines between the titles, while they should not:

Expected:
<results><title>Software For Fun and Profit</title>
<title>Software For Fun and Profit, 2nd edition</title>
<title>No Bad Software</title>
<title>Ninja Coder</title></results>

Correct: 
<results><title>Software For Fun and Profit</title><title>Software For Fun and Profit, 2nd edition</title><title>No Bad Software</title><title>Ninja Coder</title></results>
Comment 1 Mary Holstege 2010-01-18 16:43:10 UTC
examples-23-q3, examples-23-q4:
We agree that the whitespacing should be consistent between the examples. This
is fixed.  Note that comparison should be based on canonicalization of both the
test output and the expected output, however, so that insignificant whitespace introduced by a serializer does not need to be represented in alternatives. Since this is an XML fragment, the presence or absence of whitespace between the root elements is up to the serializer's discretion.

examples-37-1
We agree. Fixed.

FTIgnore-q1, FTIgnore-q3, FTIgnore-q4, FTIgnore-unconstrained-q1,
FTIgnore-unconstrained-q3, FTIgnore-unconstrained-q4
We agree. Fixed.

If you are satisified with this resolution, please mark the bug as CLOSED.