cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Including XSPs
Date Mon, 04 Dec 2000 18:52:41 GMT
Pablo Piņa <pablopi@aqs.es> wrote:
>	I would like to include the result of an XSP that generates XML into 
>another one which will be later transformed into HTML.

Ouch. This will all be much easier in Cocoon 2.

>The quickest solution we found was to
>
>     open a new Connection to the Servlet Container
>     Parse the Stream
>     Cloning the Dom (for including it into the xsp).
>
>This was too expensive, our next approach was:
>     Retrieving the needed producer and processor(s) to the request
>     Generating the included dom
>     Cloning the produced DOM

Good idea.

>
>Could we avoid to clone this DOM by passing to the XSPPage the target DOM?

Yes, no problem - simply call populateDocument instead of getDocument.



_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com


Mime
View raw message