Transforming JSON input
I propose to implement a
-json option on the command line, as recently done for the Java product; this allows the principal input of the transformation to be JSON rather than XML.
To achieve this I propose to extend the
SaxonJS.transform() API so that the options
sourceText can be JSON rather than XML; to indicate this we add another option
sourceMediaType whose values can be
application/xml or applicationi/json
for JSON, defaulting toapplication/xml`.
Note: it appears that the
SaxonJS.transform() API supports a
globalContextItem option that is missing from the documentation.
Please register to edit this issue