forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cyriaque Dupoirieux <Cyriaque.Dupoiri...@pcotech.fr>
Subject Re: PHP plugin (was Re: Quick way to skin php-files?)
Date Thu, 01 Dec 2005 10:51:27 GMT
Thorsten Scherler a écrit :

>El jue, 01-12-2005 a las 11:02 +0100, Cyriaque Dupoirieux escribió:
>...
>  
>
>>>>>Hi,
>>>>>
>>>>>   I made this in my php pipeline :
>>>>> <map:pipeline>
>>>>>
>>>>>   <!-- PHP Documentation -->
>>>>>   <map:match type="regexp" pattern="^(.*?)([^/]*).php$">
>>>>>     <map:generate src="cocoon://{1}{2}.html"/>
>>>>>     <map:transform src="resources/stylesheets/php/document2php.xsl"/>
>>>>>     <map:serialize type="html"/>
>>>>>   </map:match>
>>>>>          
>>>>>
>>>>
>>>>What does document2php.xsl do? Is this appraoch better for Ferdinand 
>>>>than the one I suggest?
>>>>        
>>>>
>>It just transform the <php> and </php> tags into *<?php* and *?>*...
>>In fact, I have created an output plugin for php format.
>>This plugin match php extension file in order to generate the skinned 
>>HTML and clean the <php> and </php> tags between which I put php calls.
>>
>>On the paper it was simple, my problem is the horible performance I get 
>>to generate the skinned HTML.
>>With the Cocoon Profile I get :
>>1     file /src=/cocoon://livres/livres.html     3031     3031     3031
>>2     xslt /src=/resources/stylesheets/php/document2php.xsl     46     
>>46     46
>>
>>to get a php file whereas it takes arround 100 to get a "normal" skinned 
>>HTML page...
>>
>>    
>>
>
>Can you check this in the whiteboard area, please (if you want).
>
>It seems to be from wider interest to our community and it would be nice
>to have it in our code base. 
>
>WDOT?
>  
>
Thank you, Thorsten, for your interest, I needed it to connect to my 
MySql DB and to generate tables from specific queries...
I am waiting for the others answer and I will commit in whiteboard if 
the vote is OK.

Salutations,
Cyriaque,

>salu2
>  
>

Mime
View raw message