> From: Olivier Rossel [mailto:[EMAIL PROTECTED]]
> 
> I want to Cinclude a text retrieved from a clob in a database.
> My idea was to have a internal pipeline that serialize as text the
given
> clob (generate=serverpages, serialize=text).
> The internal pipeline works well.
> 
> Now i want to cinclude it (using the cocoon:// pseudo-protocol).
> The problem is that whatever I do, the cincluded stuff is always a XML
> fragment that is the output of the pipeline BEFORE the
> text serialization.
> 
> Is it a bug? a misconfiguration on my side?
> Does cinclude always get the data before serialization?
> Or may be cocoon: ?

This is misunderstanding on your part. CInclude (and XInclude) DOES
ALWAYS WORK ON XML ONLY. Moreover, IIRC, XInclude stands for XML
Include. This means, you are absolutely correctly receiving XML fragment
as a result of inclusion. Also, this means you CAN NOT include ANY
binary stuff like JPGs or PDFs.

Regarding cocoon pseudo protocol and serializer. Cocoon pseudo protocol
works only on SAX XML pipelines, called event pipelines (these pipelines
must contain at least on component, generator (or aggregator), but not
reader, which could not participate in the event pipeline because it
produces binary stream). Serializer, by definition, converts XML into
binary data stream. That's why serializer is always ignored when you
invoke pipeline through cocoon protocol.

Hope now you have better understanding of these things.

Regards,
Vadim


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to