Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 43229 invoked by uid 500); 13 Nov 2001 14:18:54 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 43182 invoked from network); 13 Nov 2001 14:18:53 -0000 Reply-To: From: =?iso-8859-1?Q?Karl_=D8ie?= To: Subject: RE: SAX tree? Date: Tue, 13 Nov 2001 15:18:41 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Importance: Normal In-Reply-To: <007501c16c90$586578a0$3d3910ac@mt39neigaard> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N i see what you are getting at and i guess you'll need to wrap your SAXSource into a XMLFragment first... but i don't really know because i cannot find anywhere xsp documentation except the little pieces of documentation for cocoon1.8. This is pseudo code, i havent even tried to run it!!!! but it should give you an idea... public class myFragment implements XMLFragment { private SAXSource source = null; public myFragment(SAXSource source ) { this.source = source; } public void toSAX( ContentHandler handler ) { try { TransformerFactory factory = TransformerFactory.newInstance(); Transformer transformer = factory.newTransformer(); transformer.transform( this.source, new SAXResult(handler) ); } catch( Exception e ) { aaaaarrrrrggggg!!! } } } SAXSource msg = Controller.execute(); myFragment myfrag = new myFragment( msg ); myfrag mvh karl �ie/gan media --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: