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<[email protected]> > 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: [email protected] > For additional commands, e-mail: [email protected] > > --- original Nachricht Ende ---- --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
