Return-Path: Delivered-To: apmail-xml-xalan-j-users-archive@www.apache.org Received: (qmail 95769 invoked from network); 18 May 2004 22:45:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 18 May 2004 22:45:15 -0000 Received: (qmail 21085 invoked by uid 500); 18 May 2004 22:45:41 -0000 Delivered-To: apmail-xml-xalan-j-users-archive@xml.apache.org Received: (qmail 21038 invoked by uid 500); 18 May 2004 22:45:40 -0000 Mailing-List: contact xalan-j-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list xalan-j-users@xml.apache.org Received: (qmail 21012 invoked by uid 98); 18 May 2004 22:45:40 -0000 Received: from igorh@ca.ibm.com by hermes.apache.org by uid 82 with qmail-scanner-1.20 (clamuko: 0.70. Clear:RC:0(32.97.182.104):. Processed in 0.285995 secs); 18 May 2004 22:45:40 -0000 X-Qmail-Scanner-Mail-From: igorh@ca.ibm.com via hermes.apache.org X-Qmail-Scanner: 1.20 (Clear:RC:0(32.97.182.104):. Processed in 0.285995 secs) Received: from unknown (HELO e4.ny.us.ibm.com) (32.97.182.104) by hermes.apache.org with SMTP; 18 May 2004 22:45:40 -0000 Received: from northrelay02.pok.ibm.com (northrelay02.pok.ibm.com [9.56.224.150]) by e4.ny.us.ibm.com (8.12.10/8.12.2) with ESMTP id i4IMixKr876938 for ; Tue, 18 May 2004 18:44:59 -0400 Received: from d25ml01.torolab.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by northrelay02.pok.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id i4IMjTvK101260 for ; Tue, 18 May 2004 18:45:33 -0400 In-Reply-To: <200405182020.i4IKK8S6002268@ms-smtp-01.rdc-nyc.rr.com> Subject: RE: Using a precompiled translet from Java To: "Oleg Dulin" Cc: xalan-j-users@xml.apache.org X-Mailer: Lotus Notes Release 6.0.2CF1 June 9, 2003 Message-ID: From: Igor Hersht Date: Tue, 18 May 2004 18:44:53 -0400 X-MIMETrack: Serialize by Router on D25ML01/25/M/IBM(Release 6.0.2CF1|June 9, 2003) at 05/18/2004 18:44:58 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII X-Spam-Rating: hermes.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Then you can instruct users to have xalan.jar from somewhere else. They also can use Java 1.4 JDK (xml.jar) but the IBM JDK has only the interpretive XSLT processor. I am not sure if SUN JDK has XSLTC. Igor Hersht XSLT Development IBM Canada Ltd., 8200 Warden Avenue, Markham, Ontario L6G 1C7 Office D2-260, Phone (905)413-3240 ; FAX (905)413-4839 "Oleg Dulin" To Igor Hersht/Toronto/IBM@IBMCA 05/18/2004 04:20 cc PM Subject RE: Using a precompiled translet from Java I don't have a problem with the translet referring to xsltc processor classes. I just don't want to ship the XSL itself along with the translet. Is it possible to do something like: FooTranslet foo=new FooTranslet(); foo.transform(source, result); ? Kind regards, Oleg -----Original Message----- From: Igor Hersht [mailto:igorh@ca.ibm.com] Sent: Tuesday, May 18, 2004 3:40 PM To: Oleg Dulin Cc: xalan-j-users@xml.apache.org Subject: RE: Using a precompiled translet from Java I am not sure I understood your question completely. As far as I understand you want just take a compiled xsl file (translet). and use it in your application. It is not possible because the translet has references to XSLTC processor classes.The translet is just a binary representation of the xsl file which can be processed by the XSLTC. Igor Hersht XSLT Development IBM Canada Ltd., 8200 Warden Avenue, Markham, Ontario L6G 1C7 Office D2-260, Phone (905)413-3240 ; FAX (905)413-4839 "Oleg Dulin" To Igor Hersht/Toronto/IBM@IBMCA 05/17/2004 02:42 cc PM Subject RE: Using a precompiled translet from Java Ah, here is the problem. I am not going to ship the XSL itself, only the classes. In other words, Templates translet = tFactory.newTemplates(new StreamSource(xslInURI)); will fail because xslInURI is nonexistent. I need it to go directly to the class... Any thoughts ? Oleg -----Original Message----- From: Igor Hersht [mailto:igorh@ca.ibm.com] Sent: Monday, May 17, 2004 2:25 PM To: Oleg Dulin Cc: xalan-j-users@xml.apache.org Subject: Re: Using a precompiled translet from Java You can take a look at http://xml.apache.org/xalan-j/xsltc_usage.html I think you will find an answer to your question in XSLTC TransformerFactory attributes (attribute use-classpath ). Igor Hersht XSLT Development IBM Canada Ltd., 8200 Warden Avenue, Markham, Ontario L6G 1C7 Office D2-260, Phone (905)413-3240 ; FAX (905)413-4839 "Oleg Dulin" To 05/17/2004 12:58 cc PM Subject Using a precompiled translet from Java Dear Distinguished Colleagues: I need to package my XSLs as precompiled translets. However, I can?t figure out how to actually use the precompiled translets (load the class, instantiate and use) from Java. I am using the latest Xalan-J. Any thoughts, and code fragments are greatly appreciated. Regards, Oleg