Il giorno 13/set/04, alle 18:34, Norman Barker ha scritto:

I am trying to include data from a reader within a CInclude template, however when I do
I get the following error,
java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Streaming of an internal pipeline is not possible with a reader.

Can someone give me an idea of how to fix this? If a reader is a static resource I should be able to
call it at any time?

A reader does not produce a stream of SAX events, rather a stream of bytes and you cannot CInclude those. Change

<map:read src="file.xml"/>

to

<map:generate src="file.xml"/>
<map:serialize type="xml"/>

        Ugo

--
Ugo Cei - http://beblogging.com/

Attachment: smime.p7s
Description: S/MIME cryptographic signature



Reply via email to