473,386 Members | 1,835 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How to force use of SAXON xslt processor?

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

Jul 20 '05 #1
1 3048
"Collin VanDyck" <th**********@yahoo.com> wrote in message
news:2R***********************@news.easynews.com.. .
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 :)

Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ted | last post by:
Hi, Is there a XSL transformer that is faster than Saxon but with similiar features? I've come to rely on the saxon:assignable attribute for xsl variables. I also need the <xsl:result-document>...
1
by: Mohit | last post by:
Hi Friends I have to call 1 of the 2 child XSLT files from the Main XSLT file based on some criteria. I want one child XSLT file will be executed by version 1 of XSLT processor and the other by...
4
by: Johannes Busse | last post by:
Hello NG, I'm struggling with the following problem. I think can be solved quite easily (in fact it should be a FAQ), but it seems that I cannot solve it myself :-( my source looks like...
4
by: mikea_59 | last post by:
I'm getting different results from XMLSpy and Saxon translations - both are updated versions. Maybe someone here can give me some insight. Here is my input: <MESSAGE> <msgName> <B enum="1">...
2
by: Dr. Roger Wießner | last post by:
Hello! I am a newbie to XSLT and need a freeware/GNU Tool to get experience with this new topic. Which one is a good XSLT? Xalan or Saxon, or which one else? Thank you a lot!
4
by: Rolf Kemper | last post by:
Hi All, ned help on the example below. It works fine for msxml3/4 but has problems with saxon. Saxon complains "can not find matching function ..... " My target is to write style sheets...
1
by: Christoph Putz | last post by:
Hi! How can i do somewhat like saxon:evaluate in my xslt transformation? I tried to write an extension object, but in my case i need some context information (the value of an xslt-variable) to...
2
by: klaus | last post by:
Hello, I want to pass a parameter to an xslt using saxon on a windoes 2000 system. I'm using this command line in a batch file: java -jar c:\programme\saxon\saxon8.jar -v -novw -o...
1
by: RolfK | last post by:
Dear ALL, does anybody have the following experience: I'm writing files by xslt2.0 xsl:result-document. The URI I use is for sure unique and I could nail it down to the following: When I use...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.