Stephen Ng wrote:

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

Don't know; have not tried it personally with 2.0.3 (it's slower then 
saxon for me). One thing I do remember: xsltc some time ago was not able 
to compile sitemap because of Java extentions, and nobody yet reported 
that it's possible to completely replace Xalan with XSLTC.

Try leaving default transformer Xalan, and adding second one as XSLTC 
and use it only on your stylesheets. Thus, system will run on Xalan, and 
XSLTC will be chosen only when you tell it.


Vadim



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

Reply via email to