Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 59203 invoked from network); 24 Jan 2001 00:47:34 -0000 Received: from mta5.snfc21.pbi.net (206.13.28.241) by h31.sny.collab.net with SMTP; 24 Jan 2001 00:47:34 -0000 Received: from Netram ([63.204.28.148]) by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9) with SMTP id <0G7N0020I5ESOL@mta5.snfc21.pbi.net> for cocoon-users@xml.apache.org; Tue, 23 Jan 2001 16:30:29 -0800 (PST) Date: Tue, 23 Jan 2001 16:31:02 -0800 From: Kurt Heston Subject: RE: Processing XML output from CGI Programs with XSP In-reply-to: To: cocoon-users@xml.apache.org Cc: 'Donald Ball' Reply-to: kurtheston@yahoo.com Message-id: <003701c0859c$eef993e0$0200a8c0@delanobay.com> MIME-version: 1.0 X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 8BIT Importance: Normal X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Priority: 3 (Normal) X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N I�ve done a little more experimenting. Here�s my xsp code: //----------------------------- //------------------------------ You can see I�ve tried a number of different methods. The best I can get for output is: Warning: can't output text before document element! Isn't this the same error I would get if I had an empty doc? I�m wondering if is really doing anything. Any clues? "stylesheet.xsl" works fine when I use it with a static xml doc. -----Original Message----- From: Donald Ball [mailto:balld@webslingerZ.com] Sent: Tuesday, January 23, 2001 3:04 PM To: Kurt Heston Subject: RE: Processing XML output from CGI Programs with XSP On Tue, 23 Jan 2001, Kurt Heston wrote: > Donald, > > I already have XSLT code that transforms the CGI output and it works fine. > However, when I use , etc. I get: > > "Can't output text before document element!" > > I think that the problem is in the processing of the root node. Do you know > of a way to make the included document, the only document, such that my CGI > produced XML root is the final root node? wrap the call to in a root node: and see what happens. i'm willing to bet that the util:include you're using isn't parsing the data as xml. there's something else in the util namespace that you need to add or use instead, can't remember. grep for parse or -xml or something. - donald