Hi

Sorry for my poor english.

I have the problem. In my sitemap I have:

   <map:match pattern="test/*.xsp">
     <map:generate type="serverpages" src="test/{1}.xsp"/>
     <map:transform src="dynamic-page2html.xsl"/>
     <map:serialize type="html"/>
   </map:match>

It work very good.

But if I replace it by

   <map:match pattern="_get_file_/**">
     <map:generate type="file" src="{1}"/>
     <map:serialize type="xml"/>
   </map:match>

   <map:match pattern="test/*.xsp">
     <map:generate type="serverpages" src="cocoon:/_get_file_/test/{1}.xsp"/>
     <map:transform src="dynamic-page2html.xsl"/>
     <map:serialize type="html"/>
   </map:match>

it every time (request) transforms xsp into java (cache does not work properly?) and 
next into class. More over pattern "_get_file_/**" is matched (and executed ofcourse) 
THREE (3) times.

Why so strange construction? I have to make www service where XSP pages will be 
generated (model, view, logic in my application are defineable). So "file" generator 
will be replaced in future by my own generator and some transformators.

My cocoon version is 2.0rc1. Java version Classic VM (build 1.3.0, J2RE 1.3.0 IBM 
build cn130-20001124 (JIT enabled: jitc)). Tomcat version 3.2.1.

Thank You.

Jacek Szpyrka 


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to