XSLT transformation of JSON as the primary input document (like Saxon offers with -json option)

Are you missing a feature? Request its implementation here.
Martin Honnen
Posts: 97
Joined: Tue Aug 19, 2014 12:04 pm

XSLT transformation of JSON as the primary input document (like Saxon offers with -json option)

Post by Martin Honnen »

While oXygen allows me to apply XSLT 3.0 on JSON by using the xsl:initial-template and pass the JSON as a parameter (as described in https://www.oxygenxml.com/doc/versions/ ... nts%2Cxslt) I would like to have also an option to use a JSON document as the primary input, i.e. the global context item and, if there is no initial template given, the initial match selection of an XSLT 3.0 transformation, like Saxon offers that (I think with Saxon 11 and later) using the -json:file.json command line option.

That would allow me to use the same workflow in an oXygen JSON XSLT transformation that I use with Saxon from the command line.
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

Re: XSLT transformation of JSON as the primary input document (like Saxon offers with -json option)

Post by tavy »

Hi Martin,

Thanks for your feedback.
Yes, I think we should add this support on Oxygen. There is an issue on our issue tracker to implement this support in a future version. I added your comment on the issue and increased its priority.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Mircea
Posts: 131
Joined: Tue Mar 25, 2003 11:21 am

Re: XSLT transformation of JSON as the primary input document (like Saxon offers with -json option)

Post by Mircea »

Hello Martin,

The new Oxygen 26.1 version released few days ago includes support for transforming JSON files directly with XSLT.
Please check https://www.oxygenxml.com/doc/versions/ ... -xslt.html

Regards,
Mircea
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Post Reply