Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 38504 invoked from network); 20 Apr 2005 16:33:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2005 16:33:24 -0000 Received: (qmail 43268 invoked by uid 500); 20 Apr 2005 14:33:02 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 43186 invoked by uid 500); 20 Apr 2005 14:33:02 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 43137 invoked by uid 99); 20 Apr 2005 14:33:01 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of ap-cocoon-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 20 Apr 2005 07:33:00 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DOGBG-0005zh-6Y for users@cocoon.apache.org; Wed, 20 Apr 2005 16:27:54 +0200 Received: from d51a4ce66.access.telenet.be ([81.164.206.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Apr 2005 16:27:54 +0200 Received: from jh by d51a4ce66.access.telenet.be with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Apr 2005 16:27:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@cocoon.apache.org From: Jorg Heymans Subject: Re: soap, xml stream Date: Wed, 20 Apr 2005 16:31:08 +0200 Lines: 48 Message-ID: References: <20050420135455.GB9006@hippo.area403.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: d51a4ce66.access.telenet.be User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en In-Reply-To: <20050420135455.GB9006@hippo.area403.org> X-Antivirus: avast! (VPS 0516-3, 20/04/2005), Outbound message X-Antivirus-Status: Clean Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Matt P. wrote: > Hello all, > > I've gone back in the archive for about 2 years, and didn't find a > satisfying answer. If it's out there, please point it out. > The truth is always out there :-) > I have a c++ application, that consumes and produces xml. The xml output > is serialized (char*). That's the legacy I have to work with. > > My problem is finding the way(s) to make this output available to a > pipeline. Use JNI to get the char* into a string (should be possible but i've never used JNI) Then write a custom generator that does something like the following in generate() String myString = myjnifunction.getData(); XMLReader parser = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser"); parser.setContentHandler(this.contentHandler); parser.parse(new InputSource(new BufferedInputStream( new ByteArrayInputStream(mystring.getBytes())))); > > I have been successful at creating pieces of pipeline to create an input > form, flow the output into a soap envelope, have the soap processed, and > the return soap document transformed to extract the xml output of my > application. cool, so i have this xml string/stream, that doesn't tickle > the xsl transformer who only responds to sax. I can serialize it instead > to an xml, and put this into a pipeline named e.g. match="output.xml", > but how can i use in another part of the sitemap? Sorry but I fail to see how soap gets into this picture all of a sudden. > > I've looked at STX, but we're talking about a big document, and i don't > really want to reimplement a stylesheet that's already there. > Above code can generate MB's of data extremely fast. HTH Jorg --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org