Project

Profile

Help

Support #3230

closed

Blessed way to disable json escaping?

Added by Nick Nunes almost 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2017-05-19
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

Is there any way that json escaping can be disabled while using xml-to-json() or the json output method similar to the serialze-json() function with 'escape':true()? From what I can tell, the spec does not offer this option. Although I could use serialize-json() this line from the Saxon documentation gives me pause to do so:

This function remains available in the Saxon implementation for the time being."

I've attached two stylesheets demonstrating the difference.


Files

json-unescaped.xsl (466 Bytes) json-unescaped.xsl Nick Nunes, 2017-05-19 23:33
json-escaped.xsl (428 Bytes) json-escaped.xsl Nick Nunes, 2017-05-19 23:33
serialize-json.serialize.xsl (982 Bytes) serialize-json.serialize.xsl Nick Nunes, 2017-05-23 21:32

Please register to edit this issue

Also available in: Atom PDF