Hi, Simone. "Simone Tripodi" <[EMAIL PROTECTED]> wrote on 2008-10-17 10:05:50 AM: > So, I would like to ask you about some details: I pre-compiled a > stylesheet named "my-xslt.xsl" from command line, using the options > > -p my.xslt.package -o MyXslt > > so now I would like to know if the TransformerFactory > > Transformer t = tf.newTransformer(new StreamSource("my-xslt.xsl")); > > will look for my.xslt.package. MyXslt class. > Can you explain me what will happen, please?
XSLTC supports TransformerFactory attributes that allow you to specify the name for the translet class as well as the package. So if you use the following code, the processor should use your pre-compiled my.xslt.package.MyXslt class. By default, the classes are assumed to be in the default package with a class name derived from the system ID. tf.setAttribute("translet-name", "MyXslt"); tf.setAttribute("package-name", "my.xslt.package"); Transformer t = tf.newTransformer(new StreamSource("randomstylesheetname.xsl")); I hope that helps. Thanks, Henry ------------------------------------------------------------------ Henry Zongaro XML Transformation & Query Development IBM Toronto Lab T/L 313-6044; Phone +1 905 413-6044 mailto:[EMAIL PROTECTED]