You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Oleg Dulin <ol...@configurecode.com> on 2004/05/17 18:58:39 UTC
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
RE: Using a precompiled translet from Java
Posted by Morris Kwan <mk...@ca.ibm.com>.
Hi, Oleg
Please refer to this link
(http://xml.apache.org/xalan-j/commandline_xsltc.html#trax) for
information.
You can use the following sample code for your purpose:
TransformerFactory tf;
tf.setAttribute("use-classpath", "true");
tf.setAttribute("translet-name", "myTranslet");
tf.newTemplates(new StreamSource());
You need to put your translet jar on your classpath. If the "use-classpath"
attribute is set to true, the Templates object is created from the translet
instead of the input Source object. Hence we can pass in an empty
StreamSource to the TransformerFactory.newTemplates() call. Also note that
you have to provide the name of the translet by setting the "translet-name"
attribute.
Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: mkwan@ca.ibm.com
"Oleg Dulin"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/19/2004 09:02 cc
AM <xa...@xml.apache.org>
Subject
RE: Using a precompiled translet
from Java
Oh I think I know where the confusion is.
I don't want to ship stylesheets along with translets. That's all. I just
want to ship translets, xalan and xsltc, but not XSL stylesheet files.
Am I making any sense ?
Oleg
-----Original Message-----
From: Igor Hersht [mailto:igorh@ca.ibm.com]
Sent: Tuesday, May 18, 2004 6:45 PM
To: Oleg Dulin
Cc: xalan-j-users@xml.apache.org
Subject: RE: Using a precompiled translet from Java
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/18/2004 04:20 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Igor Hersht <ig...@ca.ibm.com>.
> want to ship translet, xalan and xsltc, but not XSL stylesheet files.
No problem. You don't need to ship your stylesheet. Translet is a
"complete" representation of the
stylesheet. Just follow the instructions from the docs (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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/19/2004 09:02 cc
AM <xa...@xml.apache.org>
Subject
RE: Using a precompiled translet
from Java
Oh I think I know where the confusion is.
I don't want to ship stylesheets along with translets. That's all. I just
want to ship translets, xalan and xsltc, but not XSL stylesheet files.
Am I making any sense ?
Oleg
-----Original Message-----
From: Igor Hersht [mailto:igorh@ca.ibm.com]
Sent: Tuesday, May 18, 2004 6:45 PM
To: Oleg Dulin
Cc: xalan-j-users@xml.apache.org
Subject: RE: Using a precompiled translet from Java
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/18/2004 04:20 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Oleg Dulin <ol...@configurecode.com>.
Oh I think I know where the confusion is.
I don't want to ship stylesheets along with translets. That's all. I just
want to ship translets, xalan and xsltc, but not XSL stylesheet files.
Am I making any sense ?
Oleg
-----Original Message-----
From: Igor Hersht [mailto:igorh@ca.ibm.com]
Sent: Tuesday, May 18, 2004 6:45 PM
To: Oleg Dulin
Cc: xalan-j-users@xml.apache.org
Subject: RE: Using a precompiled translet from Java
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/18/2004 04:20 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Igor Hersht <ig...@ca.ibm.com>.
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/18/2004 04:20 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Oleg Dulin <ol...@configurecode.com>.
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Igor Hersht <ig...@ca.ibm.com>.
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"
<oleg@configureco
de.com> To
Igor Hersht/Toronto/IBM@IBMCA
05/17/2004 02:42 cc
PM <xa...@xml.apache.org>
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Oleg Dulin <ol...@configurecode.com>.
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
RE: Using a precompiled translet from Java
Posted by Oleg Dulin <ol...@configurecode.com>.
Igor:
Thank you, I think this is just what I need.
I will update the list on my progress.
Regards,
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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
Re: Using a precompiled translet from Java
Posted by Igor Hersht <ig...@ca.ibm.com>.
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"
<oleg@configureco
de.com> To
<xa...@xml.apache.org>
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