Another way to say it is that only XML can travel along the pipeline.
You are asking Cocoon to call an internal pipeline that returns non-XML, and have the PNG output flow through your test1 pipeline. Maybe if you describe what you're trying to accomplish, we can suggest workarounds, such as a map:redirect or using an svg-to-png serializer.

Lars


Ard Schrijvers wrote:
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>



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

Reply via email to