On Aug 10, 2007, at 1:22 PM, Mohsen Saboorian wrote:
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
Actually, it should suffice to put Xalan's jar in your classpath,
as the JAXP pluggability layer should search there first.
-- Santiago