Hi,
I am running JBOSS 4.2.3.GA and I am wanting to use SAXON for certain transformations when the JAXP API is called. I don't want this to happen for all JAXP operations, but only the code that I want to run SAXON with. I was told that I can do this by replacing the standard JAXP call
TransformerFactory factory = TransformerFactory.newInstance();
by
TransformerFactory factory = new net.sf.saxon.TransformerFactoryImpl();
I just don't know where it currently invokes the transformation within JBOSS.
Would be changed in my bootstrap script '\bin\run.bat' file?
I see this line in my 'run.bat' file:
rem Use Compiling XSLT Processor (XSLTC)
set JAVA_OPTS=%JAVA_OPTS% -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
If I change this, then it might change it for all JAXP operations that rely on xalan as I would like to use SAXON for some transformations and not all.
Can anyone advise?
thank you