You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Ewing, Bryce" <Br...@HalifaxCetelem.COM> on 2002/05/22 17:55:23 UTC
Command Reader
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: Command Reader
Posted by Evan Sho <in...@evansho.net>.
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" <Br...@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:
> <co...@xml.apache.org>
> For additional commands, e-mail:
> <co...@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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>