So, in that case you would define this is in the cocoon.xconf:

<xslt-processor role="xsltc"
class="org.apache.cocoon.components.xslt.XSLTProcessorImpl">
  <parameter name="transformer-factory" class="(insert the xsltc class name
that implements TransformerFactory)"/>
</xslt-processor>

And in the the sitemap:

<map:transformer name="xslt"
src="org.apache.cocoon.transformation.TraxTransformer">
  <xslt-processor-role>xsltc</xslt-processor-role>
</map:transformer>


That's the way I use saxon, while still using xalan to compile the sitemap.
This way you could also define multiple map:transformer's, so that if some
stylesheets don't work with xsltc you can keep using xalan for those. See
the TraxTransformer javadoc for more information.

I didn't try all this with xsltc though, I just wanted to point out that it
isn't required that xsltc works with sitemap.xsl.

--
Bruno

> -----Original Message-----
> From: Davanum Srinivas [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 14, 2002 2:27 PM
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; 
> [EMAIL PROTECTED]
> Subject: RE: XSLTC fixes for XSLTMark tests
> 
> 
> Bruno,
> 
> IMNSHO, It is a MAJOR stumbling block for me since i WANT to 
> use XSLTC. 
> 
> Thanks,
> dims
> 
> --- [EMAIL PROTECTED] wrote:
> > 
> > 
> > > -----Original Message-----
> > > From: Davanum Srinivas [mailto:[EMAIL PROTECTED]]
> > > Sent: Thursday, March 14, 2002 12:07 AM
> > > To: [EMAIL PROTECTED]; [EMAIL PROTECTED];
> > > [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > > Subject: Re: XSLTC fixes for XSLTMark tests
> > > 
> > > 
> > > Tom,
> > > 
> > > That's good news. Can you please help us with running 
> > > sitemap.xsl against sitemp.xmap? This is a
> > > MAJOR stumbling block for us trying to use Cocoon2 with XSLTC.
> > > 
> > 
> > AFAIK, this is not a major stumbling block, since cocoon 
> allows to define
> > multiple xslt processors in the cocoon.xconf. Just make the 
> default one
> > xalan.
> > 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to