cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kue...@trustable.de
Subject Re: Support & Traxtransformers
Date Sat, 12 Feb 2011 16:57:17 GMT
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-static content, use
map:aggregate with two ore more map:parts. If you calculate the target of your call sdynamically,
use the CInclude transformer. 

We used these approaches for a heavy-load productuon system and see very good performance
of the syetem.

Greetings

Andreas
 
----- original Nachricht --------

Betreff: Support & Traxtransformers
Gesendet: Sa, 12. Feb 2011
Von: Alec Bickerton<alec.bickerton@net-m.ch>

> Hi,
> We're running a number of sites using cocoon 2.1.9 and have problem with 
> the TraxTransformer.
> 
> We have some xslts that make use of document($url) to retrieve some data 
> from an external service. The problem is that some of these external 
> services require the useragent http-header to be propagated from the 
> original request, in order to provide a device specific result.
> 
> Having googled for what seems like days. I think this is possible to do 
> with a URIResolver. Can anyone here suggest a way to do it ?
> 
> e.g.
> 
> request -> generatorX -> xslt1 -> xslt2 -> serialize
> 
> xslt1 matches a DSL element and calls document( 
> http://someservice/getscaledImageURLForUseragent )
> 
> The service is provided by a third party, and xslt1 cannot be changed.
> 
> Any help is much appreciated.
> 
> Regards
> Alec
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 
> 

--- original Nachricht Ende ----


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


Mime
View raw message