Return-Path: Delivered-To: apmail-forrest-user-archive@www.apache.org Received: (qmail 26492 invoked from network); 1 Dec 2005 12:45:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Dec 2005 12:45:01 -0000 Received: (qmail 11459 invoked by uid 500); 1 Dec 2005 12:45:00 -0000 Delivered-To: apmail-forrest-user-archive@forrest.apache.org Received: (qmail 11428 invoked by uid 500); 1 Dec 2005 12:45:00 -0000 Mailing-List: contact user-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@forrest.apache.org List-Id: Delivered-To: mailing list user@forrest.apache.org Received: (qmail 11417 invoked by uid 99); 1 Dec 2005 12:45:00 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 04:45:00 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [212.23.3.142] (HELO rutherford.zen.co.uk) (212.23.3.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2005 04:46:26 -0800 Received: from [82.69.78.226] (helo=[192.168.0.2]) by rutherford.zen.co.uk with esmtp (Exim 4.34) id 1Ehnnf-0001k4-10 for user@forrest.apache.org; Thu, 01 Dec 2005 12:44:35 +0000 Message-ID: <438EF028.5090801@apache.org> Date: Thu, 01 Dec 2005 12:44:24 +0000 From: Ross Gardler User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: user@forrest.apache.org Subject: Re: Quick way to skin php-files? References: <1698330812.20051128163813@soethe.net> <20051128222526.GA11424@igg.indexgeo.com.au> <1078573282.20051129093648@soethe.net> <438C2F92.2000201@apache.org> <727495520.20051129151135@soethe.net> <438C6D2A.6000501@pcotech.fr> <438C871D.7010304@apache.org> <438C88C3.10609@pcotech.fr> <438ECA2C.6000501@pcotech.fr> In-Reply-To: <438ECA2C.6000501@pcotech.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-Rutherford-IP: [82.69.78.226] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Cyriaque Dupoirieux wrote: > Cyriaque Dupoirieux a =E9crit : >=20 >> Ross, I have to go now, I'll be back on thursday... >> Thank you for your help, >> >> Cyriaque, >> >> >> >> Ross Gardler a =E9crit : >> >>> Cyriaque Dupoirieux wrote: >>> >>>> Ferdinand Soethe a =E9crit : >>>> >>>>>> This is untested, but would be where I would start experimenting=20 >>>>>> and I'm >>>>>> pretty sure is close to correct (maybe even correct ;-). >>>>>> =20 >>>>> >>>>> >>>>> >>>>> >>>>> >>>>> Thanks Ross, that was exactly what I was looking for. I just didn't= >>>>> know where to intercept. Will give it a try right away ... >>>>> >>>>> =20 >>>>> >>>> Hi, >>>> >>>> I made this in my php pipeline : >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> >>> >>> >>> >>> What does document2php.xsl do? Is this appraoch better for Ferdinand = >>> than the one I suggest? >> >> > It just transform the and tags into **... > In fact, I have created an output plugin for php format. > This plugin match php extension file in order to generate the skinned=20 > HTML and clean the and tags between which I put php calls.= >=20 > On the paper it was simple, my problem is the horible performance I get= =20 > to generate the skinned HTML. > With the Cocoon Profile I get : > 1 file /src=3D/cocoon://livres/livres.html 3031 3031 30= 31 > 2 xslt /src=3D/resources/stylesheets/php/document2php.xsl 46 = =20 > 46 46 >=20 > to get a php file whereas it takes arround 100 to get a "normal" skinne= d=20 > HTML page... I don't understand how this can be the case since an internal request=20 for "cocoon://{1}{2}.html" is identical to a client request for=20 http://localhost/{1}/{2}.html Your output from the profiler above shows only 46ms for document2php.xsl.= Are you sure you are comparing like with like? Ross