cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kurt Heston <kurthes...@yahoo.com>
Subject RE: Processing XML output from CGI Programs with XSP
Date Wed, 24 Jan 2001 17:13:55 GMT
Which line do I need to comment out?

-----Original Message-----
From: Robin Green [mailto:greenrd@hotmail.com]
Sent: Tuesday, January 23, 2001 5:58 PM
To: kurtheston@yahoo.com
Cc: cocoon-users@xml.apache.org
Subject: RE: Processing XML output from CGI Programs with XSP


Kurt Heston <kurtheston@yahoo.com> wrote:
>I?ve done a little more experimenting.
>
>Here?s my xsp code:
>
>//-----------------------------
><?xml version="1.0"?>
>
><?cocoon-process type="xsp"?>
><?cocoon-process type="xslt"?>

You need to comment out this line to see what is really going on. Ricardo
(or whoever wrote this taglib code) decided to output error messages as text
instead of throwing exceptions. I'm not sure whether this was a wise
decision; it seems rather Microsoftish, if you'll pardon the expression.

><?xml-stylesheet href="stylesheet.xsl" type="text/xsl"?>
>
><xsp:page xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>       xmlns:util="http://www.apache.org/1999/XSP/Util">
>
>	<page>
>		<util:include-uri
>href="http://userid:password@web.server.com:83/cgi-bin/codegen.exe?_FRM%3D7
5
>%26_OUT%3DXML"/>
>		<!--<util:include-uri href="http://web.server.com:83/sampleout.xml"/> -->
>		<!--<util:href>
>			<xsp:expr>"http://web.server.com:83/sampleout.xml"</xsp:expr>
>		</util:href> -->
>	</page>
></xsp:page>
>//------------------------------
>
>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!



_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message