XML to (x)HTML with Borgen Saxonica Saxon

Post Reply
emile.schilders
Newbie
Posts: 1
Joined: Sat Mar 22, 2025 5:12 pm

XML to (x)HTML with Borgen Saxonica Saxon

Post 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
User avatar
JimmyHartington
Advanced member
Posts: 453
Joined: Tue Mar 22, 2011 7:38 am

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

Post 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.
jan_suhr
Advanced member
Posts: 687
Joined: Fri Nov 04, 2011 1:12 pm
Location: Nyköping, Sweden

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

Post 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
Jan Suhr
Color Consult AB
Sweden
=============
Check out my apps
User avatar
JimmyHartington
Advanced member
Posts: 453
Joined: Tue Mar 22, 2011 7:38 am

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

Post 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
Post Reply