Title: 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

Reply via email to