[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to output a processing instruction
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@xxxxxxxxx] > Sent: 19 May 2010 16:12 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Cc: Livio Costamagna; Gianluca Bruno > Subject: Re: 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|