The magic words seem to be:
<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"/>
<parameter name="transformer-factory"
value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>
</xslt-processor>
But if I drop this into the 2.0.3 cocoon.xconf, I get an NPE:
at java.lang.Thread.run(Thread.java:484)
java.lang.NullPointerException
at
org.apache.xalan.xsltc.trax.TransformerFactoryImpl.newTransformerHandler
(TransformerFactoryImpl.java:593)
at
org.apache.cocoon.components.xslt.XSLTProcessorImpl.getTransformerHandle
r(XSLTProcessorImpl.java:282)
at
org.apache.cocoon.components.language.markup.Logicsheet.getTransformerHa
ndler(Logicsheet.java:160)
Should I give up and wait for 2.0.4/2.1 for xsltc?
Thanks,
Steve
> -----Original Message-----
> From: Vadim Gritsenko [mailto:[EMAIL PROTECTED]]
> Sent: Friday, September 06, 2002 9:56 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Xsltc and 2.0.3
>
>
> Stephen Ng wrote:
>
> >Is it possible to plug xsltc into 2.0.3?
> >
>
> Try following this:
>
> http://xml.apache.org/cocoon/snippet/snippet-xslt-options.html
>
> Vadim
>
>
> >I tried substituting in sitemap.xmap:
> >
> > <map:transformer name="xslt"
> >src="org.apache.cocoon.transformation.TraxTransformer"
> > logger="sitemap.transformer.xsltc"
> > pool-max="32" pool-min="8" pool-grow="2">
> > <use-request-parameters>false</use-request-parameters>
> >
> <use-browser-capabilities-db>false</use-browser-capabilities-db>
> > <use-deli>false</use-deli>
> >
> ><transformer-factory>org.apache.xalan.xsltc.trax.TransformerF
> actoryImpl
> ><
> >/transformer-factory>
> > </map:transformer>
> >
> >and adding xsltc-20020723.jar to my lib directory, but it
> doesn't seem
> >to do anything (e.g. it doesn't complain if xsltc is
> missing, or if I
> >change TransformerFactoryImpl to FooBarImpl).
> >
> >I thought about changing cocoon.xconf:
> >
> > <xslt-processor
> >class="org.apache.cocoon.components.xslt.XSLTProcessorImpl"
> >logger="core.xslt-processor">
> > <parameter name="use-store" value="true"/>
> > <parameter name="incremental-processing" value="false"/>
> > </xslt-processor>
> >
> >But I'm not sure what I'd put here.
> >
> >Thanks,
> >
> >Steve
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
>
---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>