The simplest way to be sure Saxon gets loaded is to replace this:
TransformerFactory tfactory = TransformerFactory.newInstance();
with this:
TransformerFactory tfactory = new net.sf.saxon.TransformerFactoryImpl();
It's more robust and a lot faster to boot. The only reason to use the
dynamic loading approach is when you don't want to commit your application
to a particular XSLT engine at application compile time.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
-----Original Message-----
From: Bartolomeo Nicolotti [mailto:bnicolotti(_at_)siapcn(_dot_)it]
Sent: 19 May 2010 16:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Cc: Livio Costamagna; Gianluca Bruno
Subject: Re: [xsl] how to output a processing instruction
Hello,
to use saxon in a java/jsp/tomcat web application up to now
we've done:
System.setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
// Create a transform factory instance.
TransformerFactory tfactory =
TransformerFactory.newInstance();
return tfactory;
but now we've another web application on the same tomcat that
clashes with this, due to this problem
http://lists.cocoondev.org/pipermail/daisy/2006-September/005150.html
Does anybody know an equivalent of this statement
System.setProperty("javax.xml.transform.TransformerFactory",
"net.sf.saxon.TransformerFactoryImpl");
that applies only to a single web application?
Many thanks
Best ragards
Bartolomeo Nicolotti
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--