cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Royal <pro...@apache.org>
Subject Re: Multiple XSL Transformers
Date Tue, 04 Jun 2002 18:11:49 GMT
On Tuesday 04 June 2002 02:05 pm, Vadim Gritsenko wrote:
> > From: Diana Shannon [mailto:shannon@apache.org]
> >
> > On Tuesday, June 4, 2002, at 01:48  PM, Vadim Gritsenko wrote:
> > > Start from TraxTransformer (search for "xslt-processor-role") in
>
> Cocoon
>
> > > 2.0.3, or TraxTransformer (search for "transformer-factory") in
>
> Cocoon
>
> > > 2.1; and follow from there.
> >
> > Does this mean it's possible, Vadim, or that Jason should try it to
>
> make
>
> > it work in this way? If it's possible, I'd like to add it to the FAQ
>
> for
>
> > xslt topics.
>
> I think it's possible also I have not tried.

It is possible. I used the xslt-processor-role variant on 2.0.2 a few months 
back to test XSLTC. It went like this (on 2.0.3, change as needed for SAXON)

Add new component to cocoon.xconf:

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

And a new transformer to your sitemap:

<map:transformer name="xslt-xsltc" 
src="org.apache.cocoon.transformation.TraxTransformer">
  <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>


-pete

-- 
peter royal -> proyal@apache.org

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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