how to use saxon.jar from php?

From: Date: Mon, 04 Mar 2002 10:57:22 +0000
Subject: how to use saxon.jar from php?
Groups: php.general 
Request: Send a blank email to php-general+get-87072@lists.php.net to get a copy of this message
Hi, I would like to use the Saxon XSL processor from within PHP. Saxon is written in Java (there is a saxon.jar; see http://saxon.sourceforge.net). Although PHP has an option to use Sablotron as XSL processor as a module, this is not supported with many hosting providers, and Sablotron is not yet 100% compliant with the XSLT recommendation. I am no Java programmer, but there is an API exposed by Saxon. I got the basic Java "Hello World" example from the PHP man page and another one from oreillynet.com working. I noticed an article on http://www.linuxwebdevnews.com/articles/php-java-xslt-2/ where an example was given, but this uses a previous version of Saxon. When trying to follow the example, I always get a "Cannot create Java Virtual Machine" error message. Does somebody uses this kind of setup, and can give me a hint as to how to use Saxon from within PHP? Or is this too resource-hungry, and should be avoided in a production environment? Thanks for your help in advance, ------ Jakob. PS: cc'ing me is appreciated, as I am on the digest list. thanks. ------ Jakob.

« previous php.general (#87072) next »