> From: Matthias Brunner [mailto:[EMAIL PROTECTED]]
> 
> Hello!
> 
> I am experiencing difficulties when including xindice query results
> into XSPs.
> XML output works flawlessly! Only when I try to transform the result
> the nodes getting included by getContentAsSAX() are not processed at
> all.
> 
> XSP:
> ...
> if (res.getResourceType().equals("XMLResource"))
>   ((XMLResource)res).getContentAsSAX(this.contentHandler);
> ...
> 
> Is there anything wrong with passing contentHandler to other
functions?

It is Ok as long as you do not have any start/end Document calls.
EmbeddedXMLPipe will help you with this.

> How do I properly include already parsed XML data by using SAX,
without
> having to reparse it?

Do you mean DOM? Try DOMStreamer.

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