cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Homeijer <M.Homei...@devote.nl>
Subject RE: Command Reader
Date Thu, 23 May 2002 06:13:52 GMT
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:inbox@evansho.net]
> Sent: donderdag 23 mei 2002 5:30
> To: cocoon-users@xml.apache.org
> 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" <Bryce.Ewing@HalifaxCetelem.COM>
> 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:
> > <cocoon-users-unsubscribe@xml.apache.org>
> > For additional commands, e-mail:
> > <cocoon-users-help@xml.apache.org>
> > 
> 
> 
> __________________________________________________
> 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: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>
> 

---------------------------------------------------------------------
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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message