cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ard Schrijvers" <a.schrijv...@hippo.nl>
Subject RE: Internal pipeline with a reader
Date Fri, 14 Jul 2006 12:37:54 GMT
Generators can only generate xml. A reader does not return xml, so what you are trying will
never work
 
Regards Ard


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>


Mime
View raw message