Hi Henry,
thank you very very much for your help and for the time you spent to reply me.
Thank you again, best regards,
Simone

2008/10/17 Henry Zongaro <[EMAIL PROTECTED]>:
>
> 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]
>
>



-- 
My LinkedIn profile: http://www.linkedin.com/in/simonetripodi
My GoogleCode profile: http://code.google.com/u/simone.tripodi/
My Picasa: http://picasaweb.google.com/simone.tripodi/
My Tube: http://www.youtube.com/user/stripodi
My Del.icio.us: http://del.icio.us/simone.tripodi

Reply via email to