cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Koehler" <ste...@ifbus.de>
Subject RE: cocoon://file.xsl as a "src" attribute for xsl transformer throws eception :(
Date Thu, 30 May 2002 16:52:48 GMT
Hi Fabien,

> -When I call http://localhost/cocoon/ActionGroup.xsl, I see my .XSL file
> allright. (I use a reader with "txt/xml" mime-type)
>
> -When, in caw's sitemap I use :
> 
>          <map:match pattern="action">
>             <map:generate src="ActionGroup.xml" />
>             <map:transform src="context://sdngui/xsl/ActionGroup.xsl" />
>             <map:serialize name="xml" />
>          </map:match>
> 
> It works well, but if I use :
> 
>          <map:match pattern="action">
>             <map:generate src="ActionGroup.xml" />
>             <map:transform src="cocoon://sdngui/ActionGroup.xsl" />
>             <map:serialize name="xml" />
>          </map:match>
> 
> Here is an error (see bellow)
> Is there an explaination ? A workaround ?

I think your mistake is to use a reader to render your XSL. This
works only for delivering (binary) content as stream to the browser, 
but not for internal pipeline processing which is SAX-based. 
Use a generator and it will work. 

Stefan

---------------------------------------------------------------------
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