Page 1 of 1

XML to (x)HTML with Borgen Saxonica Saxon

Posted: Wed Apr 02, 2025 9:09 am
by emile.schilders
Hello everyone,

I have an XML file and I want to convert it to HTML so I can print it. I want to do this using XSLT and the Saxonica Saxon app.
However, I’m not getting any HTML or XHTML output. Am I doing something wrong, or is this not possible?

Kind regards,
Emile

Re: XML to (x)HTML with Borgen Saxonica Saxon

Posted: Wed Apr 02, 2025 9:30 am
by JimmyHartington
Can you share how you are doing it now? How the Saxon app is setup?
Either a screenshot from Switch. Or document the flow and screenshot the Saxon settings there.

Re: XML to (x)HTML with Borgen Saxonica Saxon

Posted: Wed Apr 02, 2025 9:33 am
by jan_suhr
Or you could use Easy Data Transform instead, it's easier and you have an App for it in Switch.

https://www.easydatatransform.com/

https://www0.enfocus.com/en/appstore/pr ... sform-beta

Re: XML to (x)HTML with Borgen Saxonica Saxon

Posted: Wed Apr 02, 2025 10:21 am
by JimmyHartington
If your use case is not just to print the XML as a table, but if it contains order info, then I have had great success with using the app Create file from template https://www0.enfocus.com/en/appstore/pr ... m-template.
The input then has to be JSON, but XML can be converted to JSON. Also with Easy Data Transform.

The example below is a simple production sheet made from a JSON-file from a Shopify order. The output is HTML and in this case used to e-mail to an external supplier.
Image