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"
<[EMAIL PROTECTED]
de.com> To
Igor Hersht/Toronto/[EMAIL PROTECTED]
05/17/2004 02:42 cc
PM <[EMAIL PROTECTED]>
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:[EMAIL PROTECTED]
Sent: Monday, May 17, 2004 2:25 PM
To: Oleg Dulin
Cc: [EMAIL PROTECTED]
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"
<[EMAIL PROTECTED]
de.com> To
<[EMAIL PROTECTED]>
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
- Using a precompiled translet from Java Oleg Dulin
- Re: Using a precompiled translet from Java Igor Hersht
- RE: Using a precompiled translet from Java Oleg Dulin
- RE: Using a precompiled translet from Java Oleg Dulin
- RE: Using a precompiled translet from Java Igor Hersht
- RE: Using a precompiled translet from Java Oleg Dulin
- RE: Using a precompiled translet from Ja... Igor Hersht
- RE: Using a precompiled translet fro... Oleg Dulin
- RE: Using a precompiled translet... Morris Kwan
- RE: Using a precompiled translet... Igor Hersht
