cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject RE: Processing XML output from CGI Programs with XSP
Date Wed, 24 Jan 2001 01:58:01 GMT
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%3D75
>%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