XEP and Docbook on Windows 7 Basic

catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

XEP and Docbook on Windows 7 Basic

Post by catterall »

HP Omni100, Windows 7 Basic
I have Oxygen 13 loaded, works OK with fop
I have Java 1.6 release 26
I have downloaded trial XEPwin and got the license key
setup seems to run OK
BUT: when I try to get Oxygen Preferences to include XEP, I cannot find the XEP application to load. XEPWin shows up in Control Panel\Programs\Programs and Features\XEPWin but I can`t find it with the Browse facility.
I`m sure this is my un-familiarity with this peculiar operating system, new to me after various UNIX and Mac.
Please can any one help me to get Oxygen/Docbook working with XEP
Thanks
Ron
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: XEP and Docbook on Windows 7 Basic

Post by adrian »

Hello,

You should be able to find XEPwin in:
C:\Program Files\RenderX\XEPWin\
or
C:\Program Files (x86)\RenderX\XEPWin\ if you have a 64-bit Windows.

But note that the out-of-the-box support that Oxygen offers is for XEP(not XEPwin). You need the xep.bat from the regular XEP package for this to work correctly when configured in Preferences, XML > XSLT-FO-XQuery > FO Processors.

Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: XEP and Docbook on Windows 7 Basic

Post by Radu »

Hi,

We also discussed this with Kevin Brown from RenderX, please see his message below:
XEPWin comes with an .exe for command line which is named "XSLDriver.exe"
and exists in the installation folder. This is normally:

C:\Program Files (x86)\RenderX\XEPWin

You can easily use this with oXygen and not the .bat file.

The command line parameters are:

Usage:
XslDriver
[-version][-quiet]
[-xml] <infile> [-xsl <stylesheet> {-param <name=value>}]
[-pdf | -ps | -svg | -xep <outfile>]

If oXygen would like to add that in the future as an auto selection, great.
Otherwise the user can be instructed to add this manually.

If they would prefer to use XEP (Java), it is installed in a child directory
to XEPWin. This would be:

C:\Program Files (x86)\RenderX\XEPWin\xep

You are correct that xep.bat does not exist in this folder. One could create
a .bat file in that folder for your auto-selection process. The content of
that .bat file (assuming the installation directory is as stated above and
the Java directory is the default one) would be:
************************************************
@echo off

set CP=C:\Program Files (x86)\RenderX\XEP\xep\lib\xep.jar;C:\Program Files
(x86)\RenderX\XEP\xep\lib\saxon.jar;C:\Program Files
(x86)\RenderX\XEP\xep\lib\xt.jar

if x%OS%==xWindows_NT goto WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%"
com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files
(x86)\RenderX\XEP\xep\xep.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END

:WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%"
com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files
(x86)\RenderX\XEP\xep\xep.xml" %*

:END
set CP=
***********************************************

Of course, they could point to other Java (like a 64-bit one) and/or add
other parameters like -Xmx in this.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Re: XEP and Docbook on Windows 7 Basic

Post by catterall »

I set up the xep.bat file as suggested in suggested in C:\Program Files (x86)\RenderX\XEPWin\xep and browsed to find this xep.bat to add the XEP process as an FO processor to oxygen, and then did apply.

C:\Program Files (x86)\RenderX\XEPWin\xep\xep.bat
@echo off

set CP=C:\Program Files (x86)\RenderX\XEP\xep\lib\xep.jar;C:\Program Files
(x86)\RenderX\XEP\xep\lib\saxon.jar;C:\Program Files
(x86)\RenderX\XEP\xep\lib\xt.jar

if x%OS%==xWindows_NT goto WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%"
com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files
(x86)\RenderX\XEP\xep\xep.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END

:WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%"
com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files
(x86)\RenderX\XEP\xep\xep.xml" %*

:END

When I tried a transform with XEP (it works OK with fop) I got:

E[XEP] The process 'XEP' ended with code: 255. The error was: \RenderX\XEP\xep\lib\saxon.jar was unexpected at this time.

What next? Perhaps Oxygenxml and RenderX could get together and set up some way for an oxygen user to combine XEP with 64 bit Windows 7 Home Basic. ( I have JRE 1.6 release 26 up and running.)
adrian
Posts: 2850
Joined: Tue May 17, 2005 4:01 pm

Re: XEP and Docbook on Windows 7 Basic

Post by adrian »

Hi,

Make sure the lines are not broken in the .bat file for the lines with "set CP" and the java commands(which end with the % params).

Code: Select all

@echo off

set CP=C:\Program Files (x86)\RenderX\XEP\xep\lib\xep.jar;C:\Program Files (x86)\RenderX\XEP\xep\lib\saxon.jar;C:\Program Files (x86)\RenderX\XEP\xep\lib\xt.jar

if x%OS%==xWindows_NT goto WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%" com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files (x86)\RenderX\XEP\xep\xep.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9
goto END

:WINNT
"C:\Program Files (x86)\Java\jre6\bin\java" -classpath "%CP%" com.renderx.xep.XSLDriver "-DCONFIG=C:\Program Files (x86)\RenderX\XEP\xep\xep.xml" %*

:END
set CP=
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Re: XEP and Docbook on Windows 7 Basic

Post by catterall »

I have checked and found no line breaks and resaved the .bat file. There are no line breaks in the set CP or the java lines, only spaces to separate parameters. The error message is still the same
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Re: XEP and Docbook on Windows 7 Basic

Post by catterall »

Also, there is no XSLDriver.exe in C:\Program Files (x86)\RenderX\XEPWin
SoI can`t chack that way
Radu
Posts: 9018
Joined: Fri Jul 09, 2004 5:18 pm

Re: XEP and Docbook on Windows 7 Basic

Post by Radu »

Hi,

The simplest content for the xep.bat would be this:

Code: Select all

@echo off

set CP="C:\Program Files (x86)\RenderX\XEPWin\xep\lib\xep.jar;C:\Program Files (x86)\RenderX\XEPWin\xep\lib\saxon.jar;C:\Program Files (x86)\RenderX\XEPWin\xep\lib\xt.jar"

java -cp %CP% com.renderx.xep.XSLDriver -DCONFIG="C:\Program Files (x86)\RenderX\XEPWin\xep\xep.xml" %1 %2 %3 %4 %5 %6 %7 %8 %9

set CP=
You can write us using the support email address (support@oxygenxml.com) and I'll send you a xep.bat.

The fact that you do not have the XslDriver.exe in the XEPwin installation is very strange, I installed XEPwin using the default options

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
catterall
Posts: 63
Joined: Sat Jan 24, 2004 12:10 am
Location: Oaxaca, Mexico
Contact:

Re: XEP and Docbook on Windows 7 Basic

Post by catterall »

Radu
I copied your bat file and that seems to work OK. Many thanks.
Ron
Post Reply