0 Replies Latest reply on Mar 7, 2014 1:27 PM by docjay

    JBOSS 4.2.3.GA - need help with JAXP & invoking a transformation

    docjay

      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