Show
Ignore:
Timestamp:
08/20/10 14:31:13 (21 months ago)
Author:
mtld
Message:

added xslt component stuff

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/xsltcomp-2010-08-11/pfixcore/src/org/pustefixframework/http/AbstractPustefixXMLRequestHandler.java

    r4661 r5311  
    2828import java.security.MessageDigest; 
    2929import java.security.NoSuchAlgorithmException; 
     30import java.util.Collections; 
    3031import java.util.Enumeration; 
    3132import java.util.HashMap; 
     
    5960import de.schlund.pfixcore.workflow.NavigationInitializationException; 
    6061import de.schlund.pfixxml.PfixServletRequest; 
     62import de.schlund.pfixxml.RenderContext; 
    6163import de.schlund.pfixxml.RenderingException; 
    6264import de.schlund.pfixxml.RequestParam; 
     
    729731                     ((spdoc != null) ? ("pagename=" +  spdoc.getPagename()) : "spdoc==null"));  
    730732        } 
     733        RenderContext renderContext = RenderContext.create(generator.getXsltVersion()); 
     734        paramhash.put("__rendercontext__", renderContext); 
     735        renderContext.setParameters(Collections.unmodifiableMap(paramhash)); 
    731736        try { 
     737            long t1 = System.currentTimeMillis(); 
    732738            Xslt.transform(spdoc.getDocument(), stylevalue, paramhash, new StreamResult(output), getServletEncoding()); 
     739            long t2 = System.currentTimeMillis(); 
     740            System.out.println("TTTTTTTTTTTTTTTTTTTT: " + (t2-t1)); 
    733741        } catch (TransformerException e) { 
    734742            Throwable inner = e.getException(); 
     
    744752                throw e; 
    745753            } 
    746         } 
     754        }  
    747755    } 
    748756