cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: progress report on XSLTC]]
Date Sun, 09 Jun 2002 12:45:44 GMT
Gianugo Rabellino wrote:
> 
> Ivelin Ivanov wrote:
> > Excelent!
> >
> > I want to try it NOW !
> >
> > For all the folks that were benchmarking Saxon, Xalan, XT, etc.
> > This is your chance to test drive the F1 car before it's out on the official
> > race track.
> >
> >
> > Gianugo, can you please provide instructions how to swap Xalan with XSLTC in
> > the config.
> 
> Sure thing. First of all the jar: get it at
> http://cvs.apache.org/~gianugo/xsltc.jar (hmmm... what about adding it
> to the CVS since it's starting to work? I'll keep it updated while Tom
> sends me their progress). Then it's as easy as changing the
> transformer-factory parameter in cocoon.xconf to
> 
> <parameter name="transformer-factory"
> value="org.apache.xalan.xsltc.trax.TransformerFactoryImpl"/>

There is another way.

If you look into the main sitemap, you'll find a comment in the
'map:transformers' definitions that defines the transformer type "xsltc"
(note the 'c' at the end!). If you uncomment that, you can use XSLTC and
Xalan at the same time in your application.

This is mostly useful when you have nonstatic xalan extensions that
XSLTC is not currently able to call.

Ah, you could have SAXON working at the same time as well.

You might even think of doing stuff like this:

 <map:generate src="..."/>
 <map:transform type="xalan" src="..."/>
 <!--map:transform type="xsltc" src="..."/-->
 <!--map:transform type="saxon" src="..."/-->
 <map:serialize/>

and uncomment the one you like (this might be useful to perform
benchmarks on the exact same system with the exact same overheads).

The method that Gianugo suggests, instead, changes the TrAX factory and
this means that *every* xslt operation performed by Cocoon will default
to the XSLT processor that is defined there.

Hope this helps.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message