Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
From: Michael Kay <mike@sa...> - 2009-08-11 10:37:51
|
One thing that's emerged from this is that more people are using compiled stylesheets than I realised. The facility has been rather neglected for years, partly because I thought there was very little usage, so it might now get a bit more attention. I'm at the Balisage conference all this week so may not be as responsive to support requests as usual, but I'll add this to the list, and if it's not working as intended, then I'll fix it so it does. Regards, Michael Kay http://www.saxonica.com/ http://twitter.com/michaelhkay > -----Original Message----- > From: Rossen Kovachev [mailto:kovachev@...] > Sent: 11 August 2009 08:09 > To: saxon-help@... > Subject: [saxon] using compiled stylesheets with SAXON 9.2 HE > > Hi folks, > > I'm testing the interaction of the Enterprise and the Home > Editions of the new Saxon 9.2 for Java. According to the > documentation on the Saxonica homepage, it should be possible > to compile a XSL stylesheet with the Enterprise Edition and > to run it with the Home. This works well from the command > line, but I cant make it, if the transformation call is from > a java application. > > The failure message is: > > java.lang.ClassNotFoundException: > com.saxonica.config.EnterpriseConfiguration > at java.net.URLClassLoader$1.run(URLClassLoader.java:200) > at > java.security.AccessController.doPrivileged(Native Method). > > The classpaths at the start of the bat file have to be changed. > > Did someone know more about this? I send my test application > in the attached files. > > The bat calls are: > _testit.bat ee C > _testit.bat he T > > > Thanks for any suggestions! > > Rossen > > > P.S. > The server seems to filter out the *.bat file, so it comes inline: > > _testit.bat: > ============================================== > > @echo off > REM Syntax: _testit {he | ee} {C | T} > REM he - use Saxon home edition > REM ee - use Saxon enterprise edition > REM C - compile stylesheet > REM T - run with compiled stylesheet > > > setlocal ENABLEDELAYEDEXPANSION > > > set INFILE=in.xml > set OUTFILE=out.xml > set STYLESHEET=xslTest > > > set JAVADIR=c:\sgml-prg\jre\1.5.0 > set JDKDIR=c:\apps\jdk1.5.0 > > set CLASSPATH=%JAVADIR%\lib\rt.jar > set CLASSPATH=.;%CLASSPATH% > > if "%~1" == "ee" ( > set SAXONDIR=c:\sgml-prg\saxon\saxonee9-2-0-2j > set CLASSPATH=%CLASSPATH%;!SAXONDIR!\saxon9ee.jar > ) else ( > set SAXONDIR=c:\sgml-prg\saxon\saxonhe9-2-0-2j > set CLASSPATH=%CLASSPATH%;!SAXONDIR!\saxon9he.jar > ) > > > if _%2 == _C goto compile > if _%2 == _T goto translet > goto saxonT > > > :compile > %JDKDIR%\bin\javac saxonTransformer.java %JAVADIR%\bin\java > com.saxonica.CompileStylesheet %STYLESHEET%.xsl > %STYLESHEET%.sxx goto the_end > > > :translet > if not exist saxonTransformer.class goto translet_err > %JAVADIR%\bin\java saxonTransformer %STYLESHEET%.sxx %INFILE% > %OUTFILE% goto the_end > > :translet_err > echo Compile stylesheet and main first (_testit.bat ee C) goto the_end > > > :the_end > =================================================== > > > Regards! > > Rossen > |