cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Ng" <stephen...@lumigent.com>
Subject RE: Xsltc and 2.0.3
Date Fri, 06 Sep 2002 18:23:28 GMT
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:vadim.gritsenko@verizon.net] 
> Sent: Friday, September 06, 2002 9:56 AM
> To: cocoon-users@xml.apache.org
> 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:     <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>
> 
> 

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