You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Alexandre Victoor <al...@fr.adp.com> on 2003/05/12 18:07:11 UTC

dynamic xsp compiled only once

Hello,
I need to use XSPs resulting from an XSL transformation. In my company, 
instead of using directly XSP, we use a proprietary language that we call 
'aml'.

AML --> XSL --> XSP --> XSL --> HTML

In the sitemap, I have something like that :

<map:match pattern="*.xsp">
   <map:generate src="{1}.aml"/>
   <map:transform src="aml2xsp.xsl"/>
   <map:serialize type="xml"/>
</map:match>
<map:match pattern="*.html">
    <map:generate src="cocoon:/{1}.xsp" type="serverpages"/>
    <map:transform src="xsp2html.xsl"/>
    <map:serialize type="html"/>
</map:match>

For performances issues, I would cocoon to compile once for all the XSPs. 
Is it possible or do I need to write my own 'aml' generator ?
Thanks in advance for your help.
Regards

Alex


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: dynamic xsp compiled only once

Posted by Alexandre Victoor <al...@fr.adp.com>.
>
>Minor correction: sample which should compile XSP just once is 
>http://localhost:8888/samples/sources/xsp-cocoon. xsp-dynamic should get 
>compiled on every request.
>
>Vadim

Thanks for your help

Alex 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: dynamic xsp compiled only once

Posted by Vadim Gritsenko <va...@verizon.net>.
Alexandre Victoor wrote:

>
>>
>>
>> Minor correction: sample which should compile XSP just once is 
>> http://localhost:8888/samples/sources/xsp-cocoon. xsp-dynamic should 
>> get compiled on every request.
>>
>> Vadim
>>
>
> Hi again
> I have tried the example and it gets recompiled at each request :(  I 
> have tried with cocoon-2.0.4 and cocoon-latest.
> Is there an older version of cocoon working better ? 


Works ok with 2.0.5-dev, I just verified it. Does not work with 2.1m1 - 
as I said, there is some bug there. Don't know about 2.0.4, but it 
supposed to be working there too.

Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: dynamic xsp compiled only once

Posted by Alexandre Victoor <al...@fr.adp.com>.
>
>
>Minor correction: sample which should compile XSP just once is 
>http://localhost:8888/samples/sources/xsp-cocoon. xsp-dynamic should get 
>compiled on every request.
>
>Vadim
>

Hi again
I have tried the example and it gets recompiled at each request :(  I have 
tried with cocoon-2.0.4 and cocoon-latest.
Is there an older version of cocoon working better ?
Thanks

Alex 


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: dynamic xsp compiled only once

Posted by Vadim Gritsenko <va...@verizon.net>.
Vadim Gritsenko wrote:

> Alexandre Victoor wrote:
>
>> Hello,
>> I need to use XSPs resulting from an XSL transformation. In my 
>> company, instead of using directly XSP, we use a proprietary language 
>> that we call 'aml'.
>>
>> AML --> XSL --> XSP --> XSL --> HTML
>>
>> In the sitemap, I have something like that :
>>
>> <map:match pattern="*.xsp">
>>   <map:generate src="{1}.aml"/>
>>   <map:transform src="aml2xsp.xsl"/>
>>   <map:serialize type="xml"/>
>> </map:match>
>> <map:match pattern="*.html">
>>    <map:generate src="cocoon:/{1}.xsp" type="serverpages"/>
>>    <map:transform src="xsp2html.xsl"/>
>>    <map:serialize type="html"/>
>> </map:match>
>>
>> For performances issues, I would cocoon to compile once for all the 
>> XSPs. Is it possible or do I need to write my own 'aml' generator ?
>
>
>
> Yes, it is (was) possible. Unfortunately, right now cocoon protocol 
> suffers from some bug so it recompiles every time. See similar sample 
> at: http://localhost:8888/samples/sources/xsp-dynamic 


Minor correction: sample which should compile XSP just once is 
http://localhost:8888/samples/sources/xsp-cocoon. xsp-dynamic should get 
compiled on every request.

Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Re: dynamic xsp compiled only once

Posted by Vadim Gritsenko <va...@verizon.net>.
Alexandre Victoor wrote:

> Hello,
> I need to use XSPs resulting from an XSL transformation. In my 
> company, instead of using directly XSP, we use a proprietary language 
> that we call 'aml'.
>
> AML --> XSL --> XSP --> XSL --> HTML
>
> In the sitemap, I have something like that :
>
> <map:match pattern="*.xsp">
>   <map:generate src="{1}.aml"/>
>   <map:transform src="aml2xsp.xsl"/>
>   <map:serialize type="xml"/>
> </map:match>
> <map:match pattern="*.html">
>    <map:generate src="cocoon:/{1}.xsp" type="serverpages"/>
>    <map:transform src="xsp2html.xsl"/>
>    <map:serialize type="html"/>
> </map:match>
>
> For performances issues, I would cocoon to compile once for all the 
> XSPs. Is it possible or do I need to write my own 'aml' generator ?


Yes, it is (was) possible. Unfortunately, right now cocoon protocol 
suffers from some bug so it recompiles every time. See similar sample 
at: http://localhost:8888/samples/sources/xsp-dynamic

PS This was working ok in 2.0.4

Vadim



---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org