Re: [xep-support] Using XEP with Java

From: Chris Bowditch <>
Date: Fri Jan 28 2005 - 05:38:11 PST

IT-projekti FunctionFive wrote:
> Hi!
> We have been developing a Java program which automatically generates a xml document. After the xml file is generated, program sends paths of the xml and xsl files to XEP. Now what we would like to know is how can we find out when the XEP has finished the translation? Here is a sample of the code:
> Process process;
> try {
> process = Runtime.getRuntime().exec(xepLocation+"xep.bat -xml "+outLocation+"manual.xml -xsl "+XSLLocation+" -out "+outLocation+" out.pdf -format pdf");
> } catch (IOException e) {
> System.out.print("IOException " + e);
> }
> xepLocation contains the installation path of the XEP
> outLocation contains the path where users wants to save the files of the current project
> outLocation path contains automatically generated file manual.xml
> XSLLocation contains the path to XSL-file user wants to use in PDF translation
> Is there some way in Java we could examine this process and when it's finished, to move on to next phase in our program.

Why not just call the XEP Java API directly, then theres no need to shell an
external process?


(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Fri Jan 28 05:58:22 2005

This archive was generated by hypermail 2.1.8 : Fri Jan 28 2005 - 05:58:23 PST