Project

Profile

Help

Java version echo

Added by Anonymous about 17 years ago

Legacy ID: #4330149 Legacy Poster: Clogs (godisaclog)

Hi, I'm pretty new to this, so apologies if this is a silly question. I'm running a simple transformation (just adapted the simple java example in the documentation and changing filenames), but my final output includes an echo of the java version I'm using. i.e. *** Using: jre1.5.0_07 <html> <head> etc. Is there a switch or command I can use to stop this from happening? Thanks.


Replies (5)

Please register to reply

RE: Java version echo - Added by Anonymous about 17 years ago

Legacy ID: #4330250 Legacy Poster: Michael Kay (mhkay)

This output doesn't come from Saxon, and I don't recognize where else it might come from. Which particular "simple java example in the documentation" are you following? Michael Kay http://www.saxonica.com/

RE: Java version echo - Added by Anonymous about 17 years ago

Legacy ID: #4330351 Legacy Poster: Clogs (godisaclog)

Sorry Michael.. I've just realised it's returned by JAVA when called from a unix environment. I was just using this, but calling it from perl, which gives the nasty java version number at the top of every transformed page: java -jar saxon8.jar -t samples\data\books.xml samples\styles\books.xsl >c:\temp.html Will keep searching for a way to turn it off. Thanks.

RE: Java version echo - Added by Anonymous about 17 years ago

Legacy ID: #4330361 Legacy Poster: Michael Kay (mhkay)

See if there's a shellscript called "java.sh" or similar that you might be able to edit.

RE: Java version echo - Added by Anonymous about 17 years ago

Legacy ID: #4333365 Legacy Poster: Clogs (godisaclog)

I managed to get the IT guys to disable it. :) I've got another query - though it's more general. I'm using your processor as it can handle the doc-available function. I'm generating my xml data from a database using perl dbi. Doing the transformation in java called from within a perl script might have some performance issues - are you aware of any perl front ends to your software? Thanks again.

RE: Java version echo - Added by Anonymous about 17 years ago

Legacy ID: #4333384 Legacy Poster: Michael Kay (mhkay)

Yes, calling Saxon via the command-line interface is likely to be very inefficient because it means initializing the Java VM from scratch each time. For PHP there's a product called something like PHP Java Bridge designed to overcome this problem (by keeping a Java process around to handle requests). I don't know if the same approach works for Perl. One do-it-yourself solution is to run Saxon under an HTTP server such as tomcat, and submit the transformation requests from Perl using HTTP (a simple RESTful web service). Michael Kay http://www.saxonica.com/

    (1-5/5)

    Please register to reply