Page 1 of 1

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

Posted: Sat Mar 18, 2023 1:58 pm
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.

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

Posted: Mon Mar 20, 2023 9:38 am
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

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

Posted: Tue Mar 26, 2024 11:58 am
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