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
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
Depends on:
Reported: 2015-10-05 21:42 UTC by Abel Braaksma
Modified: 2015-10-29 12:42 UTC (History)
0 users

See Also:


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

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

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 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).