[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: How to run an XSLT program anywhere using Docker (step-by-step guide)
From: "Tony Graham tgraham@xxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 10 Apr 2026 14:34:25 -0000
On 10/04/2026 13:56, Roger L Costello costello@xxxxxxxxx wrote:
...
I learned that this was the *complete environment* I needed to run my XSLT program:

* Java 17 runtime (OpenJDK Temurin-17.0.18+8)

It's not clear whether you did this already, but you can reduce the size of your Docker image by using 'jlink' [1] to roll your own smaller JRE in a multi-stage container build [2] so you use fewer resources and/or can run more transformations at once.

...
  * the command used to run the transformation
    java -cp "saxon-he-12.9.jar;lib/*" net.sf.saxon.Transform -
    s:Books.xml -xsl:Books-Summary.xsl -o:Books-Summary.xml

It's also not clear how you get 'Books-Summary.xml' out of the Docker container, nor how you'd run the stylesheet with different input XML. Presumably the guide will cover how to mount local files and directories so you can vary the input and output.

Regards,


Tony Graham. -- Senior Architect XML Division Antenna House, Inc. ---- Skerries, Ireland tgraham@xxxxxxxxxxxxx


[1] https://www.baeldung.com/jlink
[2] https://github.com/docker-library/docs/blob/master/eclipse-temurin/README.md#creating-a-jre-using-jlink


Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member