Hi,

You probably mean a Reader. A Generator generates a SAX stream and a Reader
produces a binary stream.
Have a look at org.apache.cocoon.reading.ResourceReader. 

HTH,
Michael

> -----Original Message-----
> From: Evan Sho [mailto:[EMAIL PROTECTED]]
> Sent: donderdag 23 mei 2002 5:30
> To: [EMAIL PROTECTED]
> Subject: Re: Command Reader
> 
> 
> I think you have to write your own Generator, have a
> look at the source code of
> org.apache.cocoon.generation.* (just a few classes).
> 
> 
> --- "Ewing, Bryce" <[EMAIL PROTECTED]>
> wrote:
> > Hi all,
> > 
> > Just wondering if there is a way of having a reader
> > getting it's input from
> > a system command rather than from a file.
> > 
> > So I have:
> >    <map:match pattern="**.gif">
> >     <map:read mime-type="image/gif"
> > src="images/{1}.gif"/>
> >    </map:match>
> > But would rather something like:
> >    <map:match pattern="**.gif">
> >     <map:read mime-type="image/gif" src="createImage
> > {1}"/>
> >    </map:match>
> > 
> > Where create image is a script on the unix server I
> > am running on.
> > 
> > Cheers
> > Bryce
> > 
> >
> ---------------------------------------------------------------------
> > Please check that your question has not already been
> > answered in the
> > FAQ before posting.
> > <http://xml.apache.org/cocoon/faqs.html>
> > 
> > To unsubscribe, e-mail:
> > <[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> > <[EMAIL PROTECTED]>
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> LAUNCH - Your Yahoo! Music Experience
> http://launch.yahoo.com
> 
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
> 

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to