XEP install error
Here should go questions about transforming XML with XSLT and FOP.
-
- Posts: 75
- Joined: Mon Sep 28, 2009 8:10 am
XEP install error
I'm using Oxygen 18.1 on OSX. Oxygen seemed to find where XEP was when I installed Oxygen. But when I run a PDF from a DITA map (DITA OT 1.8.5), the build fails with this error:
BUILD FAILED
/Users/maglid/git/tools/DITA-OT/build.xml:44: The following error occurred while executing this line:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/build.xml:150: The following error occurred while executing this line:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/build_xep.xml:106: /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/lib does not exist.
So it's looking for this nonexistent path:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/lib
But the actual path to the XEP jar file is:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar
In the FO Processors dialog it is set up like this:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar -fo ${fo} -${method} ${out}
Is there something wrong in my setup?
XEP creates a PDF without errors when I give it this command on the command line:
java -jar /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar -fo topic.fo -pdf aaa.pdf
Thanks,
Mark
BUILD FAILED
/Users/maglid/git/tools/DITA-OT/build.xml:44: The following error occurred while executing this line:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/build.xml:150: The following error occurred while executing this line:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/build_xep.xml:106: /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/lib does not exist.
So it's looking for this nonexistent path:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/lib
But the actual path to the XEP jar file is:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar
In the FO Processors dialog it is set up like this:
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar -fo ${fo} -${method} ${out}
Is there something wrong in my setup?
XEP creates a PDF without errors when I give it this command on the command line:
java -jar /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar -fo topic.fo -pdf aaa.pdf
Thanks,
Mark
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XEP install error
Hi Mark,
In the Preferences->XML / XSLT-FO-XQuery / FO Processors you should remove the "XEP" entry and after this use the special "Add XEP FO Processor" Browse button located at the bottom to browse and choose the XEP executable script (I think that is called "xep.sh" or plain "xep") from the XEP installation folder.
Oxygen will fill out for the "XEP" engine a command line like this:
After this the DITA publishing should start working.
When running the DITA OT Oxygen does not really use the entire command line, it just uses the path to the xep executable in order to know the XEP installation folder and to pass this information to the DITA OT ANT build files.
And because your command line used something like this /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar Oxygen considered that the XEP installation folder was this one /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/, it passed this information to the ANT build files which added an extra "lib/" to it to compose the path to the XEP libraries.
Regards,
Radu
In the Preferences->XML / XSLT-FO-XQuery / FO Processors you should remove the "XEP" entry and after this use the special "Add XEP FO Processor" Browse button located at the bottom to browse and choose the XEP executable script (I think that is called "xep.sh" or plain "xep") from the XEP installation folder.
Oxygen will fill out for the "XEP" engine a command line like this:
Code: Select all
/Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/xep.sh -fo ${fo} -${method} ${out}
When running the DITA OT Oxygen does not really use the entire command line, it just uses the path to the xep executable in order to know the XEP installation folder and to pass this information to the DITA OT ANT build files.
And because your command line used something like this /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/xep.jar Oxygen considered that the XEP installation folder was this one /Users/maglid/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/lib/, it passed this information to the ANT build files which added an extra "lib/" to it to compose the path to the XEP libraries.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 75
- Joined: Mon Sep 28, 2009 8:10 am
Re: XEP install error
Thanks Radu. Does it need to be the shell script? Because the XEP shell script (usually called "xep") is not in the repo I'm using. Only the jar file xep.jar is available as an executable.
I could dig up the shell script from another XEP installation I have, but I'd like to now if I can get it to work with xep.jar instead.
I could dig up the shell script from another XEP installation I have, but I'd like to now if I can get it to work with xep.jar instead.
-
- Posts: 75
- Joined: Mon Sep 28, 2009 8:10 am
Re: XEP install error
I got it working. All I did was to remove the existing XEP config in the FO Processors dialog, and replace it with nothing. Then it just worked. I guess Oxygen was smart enough to figure it out from these DITA OT parameters that were already there in the transformations scenario:
pdf.formatter = xep
custom.xep.config = ${homeDir}/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/xep.xml
Thanks,
Mark
pdf.formatter = xep
custom.xep.config = ${homeDir}/git/tools/DITA-OT/plugins/org.dita.pdf2/lib/xep/xep.xml
Thanks,
Mark
-
- Posts: 9431
- Joined: Fri Jul 09, 2004 5:18 pm
Re: XEP install error
Hi Mark,
Great. Once Oxygen does not know where XEP is, it will not send this information anymore to the DITA Open Toolkit publishing engine. And the engine is configured to use by default the XEP present exactly where you placed it.
Regards,
Radu
Great. Once Oxygen does not know where XEP is, it will not send this information anymore to the DITA Open Toolkit publishing engine. And the engine is configured to use by default the XEP present exactly where you placed it.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service