You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Olivier Billard <ob...@rennes.jouve.fr> on 2003/07/01 16:46:11 UTC

Use of generated stylesheets

Hi all !

I posted my question on "Users", but it seems more appropriate to ask it here.
I want to use a generated stylesheet with an XSL transformer, using the cocoon protocol.
But 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 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>


The first pipe works well !
Isn't the cocoon protocol not used by transformers/TraxTransformer ?

Upayavira (thanks again !) pointed me to http://wiki.cocoondev.org/Wiki.jsp?page=MetaStylesheets,
where some people were able to use this with older version of cocoon (I'm using the CVS version of last days)...


Thanks in advance !

-- 
Olivier BILLARD


Re: Use of generated stylesheets

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Done.
Tell me if it is correct, or if I must add complementary info...

--
Olivier

Upayavira wrote:

>Oliver,
>
>I always assumed that the Wiki page that I referred you to used the cocoon: protocol. 
>I see now that it doesn't. If you've got it working with the cocoon: protocol, would you 
>be willing to update the Wiki page? 'Cos that's what that Wiki page _should_ say (I 
>mean, do you really want to expose your stylesheets to the public, which you're doing 
>if you use HTTP?!?!? )
>
>Regards, Upayavira
>
>On 1 Jul 2003 at 17:41, Olivier Billard wrote:
>
>  
>
>>Thanks (again :) !) Sylvain !
>>
>>It seems that you're right...
>>The effect is still not what I meant, but now the cocoon: works...
>>
>>--
>>
>>Olivier
>>
>>
>>
>>Sylvain Wallez wrote:
>>
>>    
>>
>>>Olivier Billard wrote:
>>>
>>>      
>>>
>>>>Hi all !
>>>>
>>>>I posted my question on "Users", but it seems more appropriate to
>>>>ask it here. I want to use a generated stylesheet with an XSL
>>>>transformer, using the cocoon protocol. But 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
>>>>        
>>>>
>>>
>>>This exception often occurs when the stylesheet is not correct. You
>>>should have more details about what goes wrong either in some
>>>chained exception, or in the log files (Xalan often logs the error
>>>before raising the exception).
>>>
>>>Sylvain
>>>      
>>>


Re: Use of generated stylesheets

Posted by Upayavira <uv...@upaya.co.uk>.
Oliver,

I always assumed that the Wiki page that I referred you to used the cocoon: protocol. 
I see now that it doesn't. If you've got it working with the cocoon: protocol, would you 
be willing to update the Wiki page? 'Cos that's what that Wiki page _should_ say (I 
mean, do you really want to expose your stylesheets to the public, which you're doing 
if you use HTTP?!?!? )

Regards, Upayavira

On 1 Jul 2003 at 17:41, Olivier Billard wrote:

> Thanks (again :) !) Sylvain !
> 
> It seems that you're right...
> The effect is still not what I meant, but now the cocoon: works...
> 
> --
> 
> Olivier
> 
> 
> 
> Sylvain Wallez wrote:
> 
> > Olivier Billard wrote:
> > 
> >> Hi all !
> >>
> >> I posted my question on "Users", but it seems more appropriate to
> >> ask it here. I want to use a generated stylesheet with an XSL
> >> transformer, using the cocoon protocol. But 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
> > 
> > 
> > 
> > This exception often occurs when the stylesheet is not correct. You
> > should have more details about what goes wrong either in some
> > chained exception, or in the log files (Xalan often logs the error
> > before raising the exception).
> > 
> > Sylvain
> > 
> 
> 
> 



Re: Use of generated stylesheets

Posted by Olivier Billard <ob...@rennes.jouve.fr>.
Thanks (again :) !) Sylvain !

It seems that you're right...
The effect is still not what I meant, but now the cocoon: works...

--

Olivier



Sylvain Wallez wrote:

> Olivier Billard wrote:
> 
>> Hi all !
>>
>> I posted my question on "Users", but it seems more appropriate to ask 
>> it here.
>> I want to use a generated stylesheet with an XSL transformer, using 
>> the cocoon protocol.
>> But 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
> 
> 
> 
> This exception often occurs when the stylesheet is not correct. You 
> should have more details about what goes wrong either in some chained 
> exception, or in the log files (Xalan often logs the error before 
> raising the exception).
> 
> Sylvain
> 



Re: Use of generated stylesheets

Posted by Sylvain Wallez <sy...@anyware-tech.com>.
Olivier Billard wrote:

> Hi all !
>
> I posted my question on "Users", but it seems more appropriate to ask 
> it here.
> I want to use a generated stylesheet with an XSL transformer, using 
> the cocoon protocol.
> But 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


This exception often occurs when the stylesheet is not correct. You 
should have more details about what goes wrong either in some chained 
exception, or in the log files (Xalan often logs the error before 
raising the exception).

Sylvain

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }
Orixo, the opensource XML business alliance  -  http://www.orixo.com