Batch processing - is it possible? #24
-
Converting file by file requires the jvm to be spawned or each conversion. Is it possible to speed this up with batch processing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
That's an interesting question, @poetsmeniet. I develop the XSLT by running the XSLT conversion in Saxon 10HE from the unix command line, and it only allows conversion of one XML file at a time: https://www.saxonica.com/html/documentation10/using-xsl/commandline/index.html. I imagine it would be possible to do multiple conversions by using the JAR file from within a Java or C++ program. |
Beta Was this translation helpful? Give feedback.
That's an interesting question, @poetsmeniet. I develop the XSLT by running the XSLT conversion in Saxon 10HE from the unix command line, and it only allows conversion of one XML file at a time: https://www.saxonica.com/html/documentation10/using-xsl/commandline/index.html. I imagine it would be possible to do multiple conversions by using the JAR file from within a Java or C++ program.
I have used a method to use the same Saxon 10HE to run XQuery scripts on more than one XML file at a time, but this requires reading the XML files from within the XQuery script. It is possible to do something similar with XSLT, using the fn:doc() function to read XML files, and the xsl:result-document inst…