473,804 Members | 3,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.prin tln("xalan class: " +

org.apache.xala n.processor.Tra nsformerFactory Impl.newInstanc e().getClass(). g
etName());
System.out.prin tln("saxon class: " +

com.icl.saxon.T ransformerFacto ryImpl.newInsta nce().getClass( ).getName());
}
}

Whose output is:

xalan class: org.apache.xala n.processor.Tra nsformerFactory Impl
saxon class: org.apache.xala n.processor.Tra nsformerFactory Impl

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 3086
"Collin VanDyck" <th**********@y ahoo.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.prin tln("xalan class: " +

org.apache.xala n.processor.Tra nsformerFactory Impl.newInstanc e().getClass(). g etName());
System.out.prin tln("saxon class: " +

com.icl.saxon.T ransformerFacto ryImpl.newInsta nce().getClass( ).getName());
}
}

Whose output is:

xalan class: org.apache.xala n.processor.Tra nsformerFactory Impl
saxon class: org.apache.xala n.processor.Tra nsformerFactory Impl

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.tran sform.Transform erFactory". 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
1430
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> element. TIA, Ted
1
3606
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 version 2 of XSLT processor based on some condition. Q) How and where shall I write logic or import desirable XSLT on the Fly ? Q) When we call AAA.XSLT then it will be processed by XSLT Processor 1
4
2418
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 this: <?xml version="1.0" encoding="utf-8"?>
4
3965
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"> <C>"1234"</C> </B>
2
2112
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
2125
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 usable for msxml3 , msxml4 , saxon .. Is there a general solution ?
1
1924
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 evaluate the xpath expression. Is there a way to get some context information into an extension object?
2
2308
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 ...\html_files\output.html ..\xml_files\input.xml ...\xslt\xml2html.xsl language=EN
1
1819
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 the doc-available(myURI) BEFORE xsl:result-document ... I get this message: XTDE1490: Cannot write more than one result document to the same URI,
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10340
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7623
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5662
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.