xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] XSLT processor Configuration for Java


Subject: RE: [xsl] XSLT processor Configuration for Java
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 9 Mar 2007 22:45:06 -0000

> I meant ,is there any configuration I need to do to use 
> SAXON,By default XALAN processor is being picked  though 
> SAXON is on the classpath.

This can be a little difficult to debug. Setting the Java system property
jaxp.debug=1 can help. 

Make sure you are using Saxon 8.9.0.2. The build of 8.9 was incorrect,
because of a bug in Ant, which caused the services information in the JAR
files to be set up incorrectly.

It's generally safer to set system properties explicitly:

javax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl

rather than relying on the classpath search.

Unless you really need to write code with no compile-time references to
Saxon classes, the simplest of all is just to instantiate the Saxon
TransformerFactory directly:

TransformerFactory factory = new net.sf.saxon.TransformerFactoryImpl()

Apart from anything else this saves the high cost of the classpath search.

Michael Kay
http://www.saxonica.com/


> 
> On Mar 9, 2007, at 1:03 PM, Michael Kay wrote:
> 
> >> Hi
> >> I would like to know the touch point for configuring XSLT 
> processor 
> >> on Java.
> >> I use Java 1.5 and I would like to use SAXON processor for my XSLT 
> >> transformation .
> >> Please advise.
> >
> > I'm not sure what you mean by "touch point", but instructions for 
> > downloading and installing Saxon are at
> >
> > http://www.saxonica.com/documentation/index/intro.html
> >
> > Michael Kay
> > http://www.saxonica.com/


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor