Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 80609 invoked from network); 12 Feb 2011 16:57:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Feb 2011 16:57:49 -0000 Received: (qmail 80277 invoked by uid 500); 12 Feb 2011 16:57:49 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 79740 invoked by uid 500); 12 Feb 2011 16:57:46 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 79733 invoked by uid 99); 12 Feb 2011 16:57:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 16:57:45 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [81.169.146.224] (HELO em-p00-ob.rzone.de) (81.169.146.224) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 12 Feb 2011 16:57:40 +0000 X-RZG-AUTH: :JHgHVUukbu/oABctYDdDW+BkisQZ86tHsKjTaG93qgWs X-RZG-CLASS-ID: em00 Received: from post.webmailer.de (put.store [192.168.40.126]) by snori-em-01.store (RZmta 25.4) with ESMTP id a06256n1BJppKD ; Sat, 12 Feb 2011 17:57:17 +0100 (MET) Received: (from httpd@localhost) by post.webmailer.de (8.13.7/8.13.6) id p1CGvHnf024769; Sat, 12 Feb 2011 17:57:17 +0100 (MET) Date: Sat, 12 Feb 2011 17:57:17 +0100 (MET) Message-Id: <201102121657.p1CGvHnf024769@post.webmailer.de> To: alec.bickerton@net-m.ch, users@cocoon.apache.org From: kuehne@trustable.de Subject: Re: Support & Traxtransformers X-Priority: 3 X-Abuse: 1682633 / 77.20.143.167 X-RZG-MBID: 15cFDIyLziL9ef2Ouv7tnWJJnMJc MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Hi Alec, the document() function is always a bad approach ! Try to use cocoon's own tools to aggregate the content. If it's a quasi-sta= tic content, use map:aggregate with two ore more map:parts. If you calculat= e the target of your call sdynamically, use the CInclude transformer.=20 We used these approaches for a heavy-load productuon system and see very go= od performance of the syetem. Greetings Andreas =20 ----- original Nachricht -------- Betreff: Support & Traxtransformers Gesendet: Sa, 12. Feb 2011 Von: Alec Bickerton > Hi, > We're running a number of sites using cocoon 2.1.9 and have problem with= =20 > the TraxTransformer. >=20 > We have some xslts that make use of document($url) to retrieve some data= =20 > from an external service. The problem is that some of these external=20 > services require the useragent http-header to be propagated from the=20 > original request, in order to provide a device specific result. >=20 > Having googled for what seems like days. I think this is possible to do= =20 > with a URIResolver. Can anyone here suggest a way to do it ? >=20 > e.g. >=20 > request -> generatorX -> xslt1 -> xslt2 -> serialize >=20 > xslt1 matches a DSL element and calls document(=20 > http://someservice/getscaledImageURLForUseragent ) >=20 > The service is provided by a third party, and xslt1 cannot be changed. >=20 > Any help is much appreciated. >=20 > Regards > Alec >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org > For additional commands, e-mail: users-help@cocoon.apache.org >=20 >=20 --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org