Hi Henry,
You are right. I was still wrong using properties. Thanks for correction. But
still I am not able to understand that how to use xsltc (xsl compiler ).
I am setting properties as you mentioned like below
Djavax.xml.transform.TransformFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
Do I also need to set the following in my code before creating transformer
factory ?
String key = "javax.xml.transform.TransformerFactory";
String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
Properties props = System.getProperties();
props.put(key, value);
System.setProperties(props);
Thanks a lot
Ajay
--- On Mon, 11/3/08, Henry Zongaro <[EMAIL PROTECTED]> wrote:
> From: Henry Zongaro <[EMAIL PROTECTED]>
> Subject: Re: xalan 2.7.1 performance issues
> To: [EMAIL PROTECTED]
> Cc: "Michael Ludwig" <[EMAIL PROTECTED]>, [email protected]
> Date: Monday, November 3, 2008, 7:59 PM
> Hi, Ajay.
>
> ajay bhadauria <[EMAIL PROTECTED]> wrote on
> 2008-11-03 08:50:12 AM:
> > Michael,
> >
> > Thanks for quick response,
> >
> > Yes, this is a typo. I am using correct property as
> you mentioned.
> >
> >
> -Djavax.xml.transform.TransformFactory=org.apache.xalan.xsltc...
>
> I'm not sure whether that's another typo in your
> e-mail or in the way you
> invoke your application as well. You wrote:
>
> -Djavax.xml.transform.TransformFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
>
> but that should be
>
> -Djavax.xml.transform.TransformerFactory=org.apache.xalan.xsltc.trax.TransformerFactoryImpl
> ^^
>
> A tip: the easiest way to tell whether you've got the
> TransformerFactory
> property right is to supply garbage as it's value. So,
>
> -Djavax.xml.transform.TransformerFactory=blah.blah.BlahBlahBlah
>
> If you don't get errors complaining that the specified
> class wasn't found,
> it means you've typed the system property name
> incorrectly.
>
> Thanks,
>
> Henry
> ------------------------------------------------------------------
> Henry Zongaro
> XML Transformation & Query Development
> IBM Toronto Lab T/L 313-6044; Phone +1 905 413-6044
> mailto:[EMAIL PROTECTED]