[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Running the same transformation on many input file

Subject: Re: Running the same transformation on many input files, optimisation possible?
From: "Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Dec 2019 03:13:34 -0000
Re:  Running the same transformation on many input file
Thanks to everyone who responded to this. I have a few things to look into
now :-)

 

cheers

T

 

From: Trevor Nicholls trevor@xxxxxxxxxxxxxxxxxx
<xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> 
Sent: Sunday, 15 December 2019 22:03
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Running the same transformation on many input files,
optimisation possible?

 

Hi

 

An application I am working on contains a large number of source documents
which are all run through the same series of transformations. While
initially the build process didn't take long the cost of repeatedly
initialising the XSL processor soon adds up, so I am looking at ways to
streamline it.

 

Our processor of choice is Saxon (currently we are using 8.7.3) so I can
shift this question to the Saxon list if there are extensions there that are
relevant.

 

So the question; given a script that essentially includes the following:

 

cd documents

for d in `cat dlist`; do

  cd $d

  for f in `cat flist`; do

    java -jar $SAXONDIR/saxon8.jar  -o  $f.new.xml  $f.xml
$SCRIPTDIR/transform.xsl  doc=$d  file=$f

  done

done

 

is there a mechanism which would allow a single Java process to perform the
equivalent?

 

Thanks

T

 

 <http://www.mulberrytech.com/xsl/xsl-list> XSL-List info and archive 

 <http://lists.mulberrytech.com/unsub/xsl-list/1349719> EasyUnsubscribe (
<> by email) 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.