I think this was a very simple question for all of you. I should have used this method:

System.setProperty(

                     "javax.xml.transform.TransformerFactory",

                        "com.icl.saxon.TransformerFactoryImpl");

-----Original Message-----
From: saxon-help-admin@lists.sourceforge.net [mailto:saxon-help-admin@lists.sourceforge.net] On Behalf Of Sharafudheen M T
Sent:
Wednesday, December 10, 2003 8:04 AM
To: saxon-help@lists.sourceforge.net
Subject: [saxon] Selecting XSL Transformer explicitly from JAVA

 

Hi XSL Gurus,

 

I have SAXON and XALAN installed in my webMethods server and I would like invoke the SAXON transformer for my XSL processing. Can we do it from the program.

 

Presently I am doing like this. I cannot specify which transformer I have to use?

 

Templates template = factory.newTemplates(xsl);

Transformer transformer = template.newTransformer();

transformer.transform(xml, result);

 

Regards,

 

Sharafudheen M T