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 29753 - [QT3TS] serialize-json-117
Summary: [QT3TS] serialize-json-117
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-26 12:30 UTC by Tim Mills
Modified: 2016-08-09 13:02 UTC (History)
1 user (show)

See Also:


Attachments

Description Tim Mills 2016-07-26 12:30:04 UTC
I think there might be an escaping problem in this test at:

 translate($r,' 	

', '')

The XML parse will present the unescaped SPACE, TAB, CR and LF characters to the XQuery parser which will then further normalize them.

I suggest using codepoints-to-string instead.
Comment 1 Tim Mills 2016-07-26 12:31:35 UTC
Similar problem in serialize-json-127.
Comment 2 Michael Kay 2016-07-29 10:02:55 UTC
I agree, we should avoid using XML escaping in tests because the effect is different for XPath and XQuery.
Comment 3 Tim Mills 2016-07-29 10:55:02 UTC
Now fixed.