It all boils down to here:
...
            return (TransformerFactory) FactoryFinder.find(
            /* The default property name according to the JAXP spec */
            "javax.xml.transform.TransformerFactory",
            /* The fallback implementation class name */
            "org.apache.xalan.processor.TransformerFactoryImpl");
...

I don't see how we can patch the TF to return a proper fallback
implementation name, because we just don't know what that is.

On Sun jdk1.4 it would be
org.apache.xalan.processor.TransformerFactoryImpl
On Sun jdk5 it would be
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
But on other vendor jdks, whats the correct value?

And if it is just a question of setting a sensible default value, we
could do just the same setting the
javax.xml.transform.TransformerFactory property.

But isn't this exactly the role of the TransformerFactory offered by the
jdk vendor?

I think the best compromise is to just remove
javax.xml.transform.TransformerFactory from xml-apis.jar (replace with
xml-apis-notf.jar ?) to let the vendor supplied default apply.

I've attached the TransformerFactory code that comes with xml-apis.jar
 
> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Scott M Stark
> Sent: 22 February, 2006 01:50
> To: jboss-development@lists.sourceforge.net
> Subject: RE: [JBoss-dev] Xalan removal saga
> 
> The more I think about it the more I doubt this is legal for 
> a java ee distribution. If we are bundling jaxp 1.3, we need 
> it to be the complete
> 1.3 set of apis and we would just have to patch the 
> TranformerFactory to do the right thing, whatever that is.
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of 
> > Dimitris Andreadis
> > Sent: Tuesday, February 21, 2006 3:07 PM
> > To: jboss-development@lists.sourceforge.net
> > Subject: RE: [JBoss-dev] Xalan removal saga
> > 
> > 
> > I traced this down to a TranformerFactory included in the 
> xml-apis.jar 
> > that comes with xerces tools (e.g.
> > Xerces-J-tools.2.7.1.zip).
> > 
> > This is tagged as 1.3.02 and in turn originates from 
> > http://xml.apache.org/commons/
> > 
> > The xml-commons hadn't had any releases for some time, so 
> the tagged 
> > xml-apis.jar comes directly from their cvs.
> > 
> > I think I will remove all javax.xml.transform.** from 
> xml-apis.jar to 
> > create a new xml-apis-no-transform.jar and include this instead.
> > 
> > From a quick test it seems to be working with both jdk1.4 and jdk5.
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc. Do you grep 
> through log files for problems?  Stop!  Download the new AJAX 
> search engine that makes searching your log files as easy as 
> surfing the  web.  DOWNLOAD SPLUNK!
> http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
> _______________________________________________
> JBoss-Development mailing list
> JBoss-Development@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 

Attachment: TransformerFactory.java
Description: TransformerFactory.java

Reply via email to