Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 94442 invoked from network); 8 May 2007 08:01:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 8 May 2007 08:01:54 -0000 Received: (qmail 2059 invoked by uid 500); 8 May 2007 08:01:56 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 1986 invoked by uid 500); 8 May 2007 08:01:56 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 1975 invoked by uid 99); 8 May 2007 08:01:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 01:01:56 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.97.50.132] (HELO mout1.freenet.de) (194.97.50.132) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2007 01:01:49 -0700 Received: from [194.97.50.136] (helo=mx3.freenet.de) by mout1.freenet.de with esmtpa (Exim 4.68) (envelope-from ) id 1HlKdT-0005DE-B3 for users@cocoon.apache.org; Tue, 08 May 2007 10:01:27 +0200 Received: from mail.iasb.org.uk ([213.219.30.130]:37515 helo=[192.1.2.155]) by mx3.freenet.de with esmtpa (ID obst.holger@freenet.de) (port 25) (Exim 4.68 #1) id 1HlKdT-0008Jn-86 for users@cocoon.apache.org; Tue, 08 May 2007 10:01:27 +0200 Message-ID: <46402EB1.6040709@freenet.de> Date: Tue, 08 May 2007 09:02:57 +0100 From: HGENTO User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: users@cocoon.apache.org Subject: command line application - need help Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi, this is my first question to this newgroup and I really hoe that somebody can help me out or give me guidance. I'm running cocoon 2.1.10 on linux for a while and it works great, I also implemented the saxon8 parser as pointed out at the cocoon wiki page. Now I'm struggling with an problem, as I try to implement a java application. This Java application is a transformer for special xml files. This transformer is a open source transformer and it works in a way of command line like saxon for example: transformer.bat -i:input.xml -o:output.html -t:transform.xsl This command line works fine for me but now I try to implement this into the cocoon as I would like to start the transformation from a sitemap.xmap. I tried different way but I'm lost. So there are two questions: 1. is it possible to start a command line application within a running cocoon and the command line tools could use special classpaths? 2. what would be the best way to implement this application, with map:act and action ? I would really appreciate if somebody could give me a little help. I could also give the sourceforge page for this opensource transformer. Regards, H. So to give extra information, the transformer.bat script under windows like like that: transformer.bat ********************** rem build classpath set CLASSPATH="dom.jar;jaxb-api.jar;xalan.jar;saxon8.jar;jaxb-impl.jar;jaxb-libs.jar;jaxp-api.jar;../specialfolder;./" rem build param list set PARAMS= :next shift if %0test==test goto done set PARAMS=%PARAMS% %0 goto next :done echo params: %PARAMS% rem run processor java -Xmx512m -cp %CLASSPATH% some.class.xml.Transform %PARAMS% *********************** --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org