Hey all, I just wanted to follow up from my last message. I found my mistake and I thought I'd let others know in case they would run into the same problem. My original code created a new parser instance and called parse() with super.xmlConsumer. After thinking about it I remember that ContentHandlers are are not supposed to be re-entrant (that is, they shouldn't be directed at a new document in the middle of another). However, one can still directly call it's event methods (as is normally done when implement a Transformer). So the solution is to have a simple implementation of ContentHandler and LexicalHandler (I used an inner class) that simply calls the methods of super.xmlConsumer of the transformer component. This handler can then be passed to the new parser to deal with the new embedded content.
Oh yeah, and the new ContentHandler should NOT pass along the startDocument and endDocument events (after all, the content is supposed to be embedded in the document that super.xmlConsumer is generating). /S -- Steven Cummings Columbia, MO Email: [EMAIL PROTECTED] AIM: cummingscs ICQ: 3330114 __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>