On 8/10/07, Zakon, Stuart <[EMAIL PROTECTED]> wrote:
> We are migrating a web application to JDK 1.5 and have discovered that
> the XSLT engine is defaulted to Xalan XSLTC:
> http://java.sun.com/j2se/1.5.0/docs/guide/xml/jaxp/ReleaseNotes_150.html
>
> Currently we are experiencing problems with XSLTC and would like to
> switch to the interpretive version of Xalan 2.7.
>
> In the above release notes and compatability guide it is not clear how
> we would override this XSLT engine and run the interpretive version of
> Xalan, even if we install this version outside of the JDK since the JDK
> takes preference in the classpath.
>

You should change system properties
"javax.xml.transform.TransformerFactory", through a call like this:
System.setProperty("javax.xml.transform.TransformerFactory", "FQCN");

examples of FQCN:
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
org.apache.xalan.xsltc.trax.TransformerFactoryImpl
net.sf.saxon.TransformerFactoryImpl
gnu.xml.transform.TransformerFactoryImpl
...

Hope this helps.

Reply via email to