- From: <nobody@w3.org>
- Date: Mon, 27 Jul 2015 19:34:03 +0000
- To: public-qt-comments@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=28995
Bug ID: 28995
Summary: json-to-xml-012 and json-doc-012 should not expect
quotation marks (0x22) to be escaped
Product: XPath / XQuery / XSLT
Version: Candidate Recommendation
Hardware: PC
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XQuery 3 & XPath 3 Test Suite
Assignee: oneil@saxonica.com
Reporter: josh.spiegel@oracle.com
QA Contact: public-qt-comments@w3.org
Target Milestone: ---
Group: XSLXQuery_WG
json-doc-012:
<test-case name="json-doc-012">
<description>JSON document containing escape character, using escape
options parameter</description>
...
<environment ref="json-files"/>
<test><![CDATA[fn:json-doc('http://www.w3.org/qt3/json/escapeText-json',
map{'escape':true()})?key]]></test>
<result>
<assert-string-value>Data with \" within it</assert-string-value>
</result>
</test-case>
escapeText-json
{
"key" : "Data with \" within it"
}
>From section 17.5.1 parse-json, when 'escape' is true:
"Special characters in the JSON input are represented using JSON escape
sequences in the result. This applies whether or not the relevant characters
were represented using JSON escape sequences in the input. The characters that
are considered "special" for this purpose are all codepoints in the range x00
to x1F or x7F to x9F, all codepoints that do not represent characters that are
valid in the version of XML supported by the processor, plus the backslash
character itself (x5C). ..."
0x22 is not in the set of escaped characters. The expected result should be:
<assert-string-value>Data with " within it</assert-string-value>
json-to-xml-012 also needs to be updated.
--
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Monday, 27 July 2015 19:34:06 UTC