The stylesheet must be available before the pipeline is setup. The setup, configure and compose methods for each component in a pipeline is called before the startdocument method is called. In the case of the org.apache.cocoon.transformation.TraxTransformer the call to the stylesheet is made in before any XML gets generated from the generate portion of the pipeline.
The only way I can think to work around this is to write your own version of the org.apache.cocoon.transformation.TraxTransformer such that the getTransformerHandler(inputSource) is called from the startDocument. I modified the TraxTransformer in such a way for my application. It could probably be easily modified to meet your needs. If anyone knows a more graceful way to do this, please let me know. -----Original Message----- From: Olivier GUCKERT [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 9:06 AM To: [EMAIL PROTECTED] Subject: Re: Howto use a generated stylesheet Olivier Billard a écrit : > > Hi all ! > > I'm trying to use a generated stylesheet for an xsl transformer and I get this error : > > org.apache.cocoon.ProcessingException: Unable to get transformer handler for cocoon:/picto-filter.xsl: > org.apache.excalibur.xml.xslt.XSLTProcessorException: Exception in creating Transform Handler > > Here is a snippet of my sitemap : > > <map:match pattern="picto-filter.xsl"> > <map:generate src="context://WEB-INF/workflow.xconf"/> > <map:transform src="stylesheets/picto-filter-generator.xsl"/> > <map:serialize type="xml"/> > </map:match> > > ... > > <map:match pattern="requestlist-part"> > ... > <map:transform src="cocoon:/picto-filter.xsl"/> > <map:serialize type="xml"/> > </map:match> > > Isn't the cocoon protocol used in transformers ?? > Am I misunderstanding some things ? > Thanks in advance !! Did youb try : <map:transform src="cocoon:picto-filter.xsl"/> (without the "/" before picto) ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]