cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Gritsenko" <vadim.gritse...@verizon.net>
Subject RE: Cocoon & xindice: SAX problem
Date Mon, 11 Mar 2002 00:25:02 GMT
> From: Matthias Brunner [mailto:mb@blumenstrasse.vol.at]
> 
> 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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message