You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Zhu Di <fl...@gmail.com> on 2006/07/14 13:16:01 UTC
Internal pipeline with a reader
I try to use coccon:\\ to call the pipeline in another application, but for
html it works fine, but for PNG (using reader), it couldn't work. I got the
error message as
Streaming of an internal pipeline is not possible with a reader.
how can I make it works for PNG file
I have two application under cocoon: test1 test2
in test1 sitemap:
<map:match pattern="ext/**/*.html">
<map:act type="serverpages" src="......">
<map:generate src="cocoon://test2/*.html"/>
</map:act>
......
</map:match>
<map:match pattern="ext/**/*.png">
<map:generate src="cocoon://xa-xq/framed/{4}/{5}/{1}/{6}/png/{7}.png"/>
<map:act type="serverpages" src="......">
<map:generate src="cocoon://test2/*.png"/>
</map:act>
......
</map:match>
in test2 sitemap:
<map:match pattern="*.html">
<map:generate ...>
<map:serializer ..>
</map:match>
<map:match pattern="*.png">
<map:read src="png/{1}.png" mime-type="image/png"/>
</map:match>