From ant-user-return-21333-qmlist-jakarta-archive-ant-user=jakarta.apache.org@jakarta.apache.org Fri May 31 19:33:10 2002 Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 70716 invoked from network); 31 May 2002 19:33:09 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 31 May 2002 19:33:09 -0000 Received: (qmail 26993 invoked by uid 97); 31 May 2002 19:32:57 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 26966 invoked by uid 97); 31 May 2002 19:32:56 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 26952 invoked by uid 98); 31 May 2002 19:32:55 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <7F1BE270B8EDD411A3A000508BAC87FF0504A491@cormails10.jdedwards.com> From: "Brown, Michael" To: "'Ant Users List'" Subject: RE: XSLT issue with sending a parameter through javascript.... Date: Fri, 31 May 2002 13:24:27 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Here is my snippet of code, not very refined and I have been logging to debug as I go. Let me know if there is more needed but this is the looping being executed. for(x = 0; x < ptypes.length; x++){ basedir=InitRetrieval.getProperty("basedir"); outval[x]=("retrieval" + x + ".xml"); outvalfile=(basedir + "/" + outval[x]); var outfile= new File(outvalfile); inval =("OW" + ptypes[x] + "_Paths.xml"); invalfile=(basedir + "/" + inval); var infile = new File(invalfile); pstyle = InitRetrieval.createTask("style"); pstyle.setStyle("retrieval.xsl"); pstyle.setExtension(".xml"); pstyle.setProcessor("xalan"); pstyle.setIn(infile); pstyle.setOut(outfile); pstyle.setForce(true); pstyleparm=pstyle.createParam(); pstyleparm.setName("platform"); InitRetrieval.log(pstyleparm.getName()); InitRetrieval.log(pstyle.params.size()); pstyleparm.setExpression(InitRetrieval.getProperty("jde.osrunning")); check = pstyle.params.firstElement(); InitRetrieval.log(check.getName()); InitRetrieval.log(check.getExpression()); InitRetrieval.log("Done Param.setExpression"); pstyle.execute(); } Here is the xml that does work.... Mike B. -----Original Message----- From: Diane Holt [mailto:holtdl@yahoo.com] Sent: Friday, May 31, 2002 12:25 PM To: Ant Users List Subject: Re: XSLT issue with sending a parameter through javascript.... --- "Brown, Michael" wrote: > When I transfer the code into JS then it doesn't > send the parameter. Any ideas???? I think you'd need to post your