TransformerFactory.newTransformer() very slow ? TransformerFactory factory = TransformerFactory.newInstance();
is a JAXP thing and nothing to do with dom4j. Other than the cost of class loading, I'm not aware of any reason for this to be particularly slow. Do you have any wierd ClassLoaders installed? James ------- http://radio.weblogs.com/0112098/ ----- Original Message ----- From: Bingel, Michael To: '[EMAIL PROTECTED]' Sent: Wednesday, December 11, 2002 5:17 PM Subject: [dom4j-user] TransformerFactory.newTransformer() very slow ? Hi there, I am just trying to do some XSLT with the help of dom4j. I took a sample from the dom4j "Quick Start" and it works: DocumentResult result = null; // load the transformer using JAXP TransformerFactory factory = TransformerFactory.newInstance(); StreamSource s = new StreamSource(stylesheet); // --> this one takes 20 seconds !?! Transformer transformer = factory.newTransformer(s); // now lets style the given document DocumentSource source = new DocumentSource(request); result = new DocumentResult(); transformer.transform( source, result ); // return the transformed document transformedDoc = result.getDocument(); The problem is that the TransformerFactory.newTransformer() call takes about 20 seconds to finish - way too long. I even added proxy settings because I thought it may be stopped when retrieving some XML/DTD/Schema/NameSpace/whatever from W3, but it didn't speed up at all. My question is simple: HELP ? cheers Mike __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ dom4j-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/dom4j-user