Re: Cocoon xindice: SAX problem

2002-03-11 Thread Matthias Brunner

On Monday, 11. March 2002 01:25, Vadim Gritsenko wrote:
  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.


Thanks! This works.

Best regards!
-- 
Matthias Brunner [EMAIL PROTECTED]
PGP FP 7862 32B3 3B75 292A F76F  5042 8587 21AB 5B89 D501
Check out http://blumenstrasse.vol.at/~mb/gpgkey.asc

-
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]




RE: Cocoon xindice: SAX problem

2002-03-10 Thread Vadim Gritsenko

 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]