[xsl] jd.xsltc translet performs System.exit ?

Subject: [xsl] jd.xsltc translet performs System.exit ?
From: Burghard Güther <xsl-list@xxxxxxxxxx>
Date: Thu, 14 Aug 2003 23:28:52 +0200
Hi,

I want to run a translet generated by jd.xsltc via a java-program 
several times in a loop. It seems that only the first pass is done 
and after this the program stops. Does the translet do this? How 
can I prevent it from doing so?

In the following code "hello1" is printed only one time, "hello2" 
doesn't get printed at all. Diml2cmsTranslet is the translet created 
by jd.xsltc (Version 1.0, released 13 May 2003).

     for(int s=0; s<parts.getLength(); s++) {

       [ ... ]
 
       Diml2cmsTranslet cmstranslet = new Diml2cmsTranslet();
       String transletarguments[];
       transletarguments = new String[6];
       transletarguments[0]= "-out";
       transletarguments[1]= cmsContainerFile;
       transletarguments[2]= "-param";
       transletarguments[3]= "SELECTID";
       transletarguments[4]= "'" + id + "'";
       transletarguments[5]= dimlFileName;

       System.out.println("hello1");
       cmstranslet.main(transletarguments);
       System.out.println("hello2");

     } // end for

Hope thats not a too stupid question, 

Burghard ;)

-- 
Wer nichts weiß, muss alles glauben. (Marie von Ebner-Eschenbach)

Burghard Guether
xsl-list@xxxxxxxxxx

http://www.guether.de/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread