cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <>
Subject RE: Using Pipeline with third party converters
Date Mon, 02 Sep 2002 23:24:35 GMT
If you have an existing application which you can't easily port to Cocoon
you can package it as a CGI application. Then you can invoke it from Cocoon,
and also use Cocoon to pass it the data it needs.

I've used this technique to embed a Microsoft eBook compiler into a Cocoon
app. The user requests the cgi output (a Microsoft Reader eBook) from an
ordinary reader, which encapsulates the cgi, and passes it parameters. The
cgi program (makelit.exe) also reads data from Cocoon (the url which is
passed to the cgi is the url of a Cocoon pipeline which provides data to the
eBook compiler). In my case I had the C++ source for the eBook compiler, so
I could modify it to be a cgi app, but otherwise you can always wrap your
application in some kind of shell script.

<!-- MS Reader (.lit) file -->
<map:match pattern="etexts/*.lit">

browser    cocoon     cgi-app
   |          |          |
   | request  |   read   |
   | -------> | -------> |
   |          |          |
   |          | get data |
   |          | <------- |
   |          |          |
   |          | <------- |

-----Original Message-----
Sent: Tuesday, 3 September 2002 00:29
Subject: Using Pipeline with third party converters

As part of a project I am conducting I am looking into the possibility of
using the Cocoon Pipeline to manage the use of a third party format
converter such as a2ps (which converts a variety of file formats into PS for

* How could I go about this?
* Is it possible?

I would prefer not to use a custom reader, unless this is the only way of
going about it.

Your feedback would be greatly welcome
Pete Bradburn

Please check that your question  has not already been answered in the
FAQ before posting.     <>

To unsubscribe, e-mail:     <>
For additional commands, e-mail:   <>

View raw message