cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin O'Neill" <ke...@rocketred.com.au>
Subject Re: xsltc
Date Fri, 18 Oct 2002 04:37:12 GMT
Steve,

> I got xsltc working with 2.0.3 (thanks Vadim...), and even wrote a short
> how-to on it: http://outerthought.net/wiki/Wiki.jsp?page=XSLTC.  On my
> app I get about a 2x speedup over Xalan.

I followed you instructions (I think :)) but I get 

FATAL (/esit/data/summary.rdf) CocoonServlet: The Cocoon engine said it
failed to process the request for an unknown reason.

Which isn't all that helpful.

cocoon.xconf snippit

 <!-- XSLT Processor:
    For Xalan: Turn 'incremental-processing' to true if you want a
continous output (if set to false the transformer 
    delivers SAX events after all transformations has been done). -->

  <xslt-processor
class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
     logger="core.xslt-processor">
     <parameter name="use-store" value="true"/>
     <parameter name="incremental-processing" value="true"/>
  </xslt-processor>

  <xslt-processor
     class="org.apache.cocoon.components.xslt.XSLTProcessorImpl" 
     role="org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC"
     logger="core.xslt-processor">
     <parameter name="use-store" value="true"/>
     <parameter name="transformer-factory"
value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
  </xslt-processor>

sitemap snippit.

    <map:transformers default="xslt">
      <map:transformer name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer" pool-grow="2"
pool-max="32" pool-min="8" logger="components">
        <use-request-parameters>false</use-request-parameters>
        <use-browser-capabilities-db>false</use-browser-capabilities-db>
        <use-deli>false</use-deli>
      </map:transformer>
      <map:transformer name="xsltc" logger="components"
src="org.apache.cocoon.transformation.TraxTransformer" pool-max="32"
pool-min="16" pool-grow="4">
        <use-request-parameters>false</use-request-parameters>
        <use-browser-capabilities-db>false</use-browser-capabilities-db>
     
	<xslt-processor-role>org.apache.cocoon.components.xslt.XSLTProcessor/XSLTC</xslt-processor-role>
      </map:transformer>
    </map:transformers>

How does this compare to yours?

-k.

-- 
If you don't test then your code is only a collection of bugs which 
apparently behave like a working program. 

Website: http://www.rocketred.com.au/blogs/kevin/


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message