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 29178 - [XSLT30] (editorial) texts says json-to-xml returns a map
Summary: [XSLT30] (editorial) texts says json-to-xml returns a map
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XSLT 3.0 (show other bugs)
Version: Last Call drafts
Hardware: PC Windows NT
: P2 minor
Target Milestone: ---
Assignee: Michael Kay
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-05 21:42 UTC by Abel Braaksma
Modified: 2015-10-29 12:42 UTC (History)
0 users

See Also:


Attachments

Description Abel Braaksma 2015-10-05 21:42:13 UTC
Under Section 22.2 fn:json-to-xml we write the following example:

<quote>
The expression json-to-xml('{"x": "\\", "y": "\u0025"}') returns one of the following: <map xmlns="http://www.w3.org/2013/XSL/json"> <string key="x">\</string> <string key="y">%</string> </map> or map{"x": "\","y": "%"}.
</quote>

It is about the last part:

> or map{"x": "\","y": "%"}.
But the signature of fn:json-to-xml only allows returning a document node. I don't think we allow it to return a map.
Comment 1 Michael Kay 2015-10-07 21:32:50 UTC
Note also that the namespace http://www.w3.org/2013/XSL/json needs updating.
Comment 2 Michael Kay 2015-10-12 09:00:45 UTC
The changes have been applied (the examples have been refreshed from the XPath 3.1 version of the specification).