cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <>
Subject Re: Spawning Cocoon for local XML/XSL work
Date Tue, 01 Aug 2000 13:42:02 GMT
"Yann" <> wrote:

>Well I have to create an app that will allow users to generate XML 
>and transform them in various files. It's like a desktop app as opposed to 
>real Cocoon web app. There are some reasons for doing so but I don't want 
>get into the details.
>Instead of using Xalan and also doing something similar to the XSP SQL tag
>lib, I thought I might as well spawn a Cocoon instance that will process an
>XSP page and do the transformation and eventually save the results onto the
>hard drive (possibly using the Xalan redirection extension).
>So has anybody done something similar (like a servlet wrapper) for Cocoon.
>Or is it even simpler than I thought?

It's very simple. Look at src/org/apache/cocoon/ in your 
distribution. Just create an EngineWrapper and call handle() on it.

Obviously some things won't make much sense in offline mode, like 
response.sendRedirect. Most servletRequest and servletResponse functionality 
doesn't do anything in offline mode.

Robin Green
i-tao Ltd.
4 Skyline Village
London E14 9TS
United Kingdom
Phone +44 20 7537 2233  Fax +44 70 8081 5118

Get Your Private, Free E-mail from MSN Hotmail at

View raw message