DE BEAUREPAIRE LUDOVIC wrote:
Hi all,

I am using cocoon for printing PDF files, so I'm receiving requests with XML datas and 
have to choose the XSL stylesheet for transformation after the action.
So I try to have the sitemap with something like this

   <map:match pattern="edit">
    <map:act type="srvimp">
     <map:parameter name="srvImpTypeAction" value="EDIT"/>
     <map:generate type="xsp" src="web/xsp/EDITION.xsp"/>
     <map:transform src="xsl/{my_sitemap_param}.xsl"/>
    <map:serialize type="fo2pdf"/>
    </map:act>
   </map:match>

and in my srvimp action  :
        sitemapParams.put("my_sitemap_param", "test");
        request.setAttribute("my_sitemap_param", "test");

It is KO (don't find xsl/.xsl)

A solution ? A confirmation it is not possible (after pipeline setup) ?

2 others solution i tried :
- Having xsl as templates in one stylesheet, but it is using too much memory (more 
than 200 stylesheets)
- using redirection for transformation operation but i have an erratic comportment 
(1*/10, the URL has moved ???)

Configuration :
- Cocoon 2.0.4
- Tomcat 4.1.*
- JDK 1.3.*,1.4.* - OS Linux, W2000, AIX


Thx,
Ludovic

What Map are you returning from your action? The key-value needs to get put there.


Geoff


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



Reply via email to