How to force use of SAXON xslt processor?

C

Collin VanDyck

I've got a simple Java program:

public class Test {
public static void main(String[] args) {
System.out.println("xalan class: " +

org.apache.xalan.processor.TransformerFactoryImpl.newInstance().getClass().g
etName());
System.out.println("saxon class: " +

com.icl.saxon.TransformerFactoryImpl.newInstance().getClass().getName());
}
}

Whose output is:

xalan class: org.apache.xalan.processor.TransformerFactoryImpl
saxon class: org.apache.xalan.processor.TransformerFactoryImpl

It seems like Xalan has taken over my computer.

I do not have any classes in my jre/lib/endorsed, yet I cannot even get
saxon's transformer factory to reutrn a saxon transformer factory instance.
I want to be able to hot swap transformers in my application -- is there
something I am missing here?

Many thanks for any help.

Collin
 
C

Collin VanDyck

Collin VanDyck said:
I've got a simple Java program:

public class Test {
public static void main(String[] args) {
System.out.println("xalan class: " +

org.apache.xalan.processor.TransformerFactoryImpl.newInstance().getClass().g
etName());
System.out.println("saxon class: " +

com.icl.saxon.TransformerFactoryImpl.newInstance().getClass().getName());
}
}

Whose output is:

xalan class: org.apache.xalan.processor.TransformerFactoryImpl
saxon class: org.apache.xalan.processor.TransformerFactoryImpl

It seems like Xalan has taken over my computer.

I do not have any classes in my jre/lib/endorsed, yet I cannot even get
saxon's transformer factory to reutrn a saxon transformer factory instance.
I want to be able to hot swap transformers in my application -- is there
something I am missing here?

Many thanks for any help.

Collin

Ok I just got it to work setting the system property
"javax.xml.transform.TransformerFactory". Thanks for reading my post :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top