Mario R. Sanchez, Ph.D. <> wrote:
> thank you but i've narrowed it down to something else - sorry for the
> confusion.
>
> the running of the script was working - the error was on displaying...
>
> the perl script generates a valid xml document.
>
> but when attempting to display the same output (xml) to a browser -
> naturally adding use CGI; a server error is displayed on the browser.
> only way i see getting around this is by adding
>
> print header;
>
> which no longer gives the error - but now get an invalid xml formed
> document - correctly so since the first line is now "Content-type:
> text/html" and not <?xml ver.....>
>
> catch-22
>
> use CGI qw(:standard);
> print header;
> ##print "Content-type:text/xml\n\n";
> print qq(<?xml version="1.0" encoding="ISO-8859-1"?>\n); print
> qq(<?xml-stylesheet type="text/xsl" href="labor.xsl"?>\n);
>
> tried text/xml but that behaves as if the print header was not there.
>
> so .... any idea on how to have the xml generated from a perl script
> using cgi correctly be allowed to display???
>
> again sorry for the cofusion - but this be it....
If you mean that your commented out print is ignored, that might be
because it was incorrectly formatted.
Try
print header("text/xml");
HTH
--
Brian Raven
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message do not
necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail
vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre
systeme. Le contenu de ce message electronique ne represente pas necessairement
la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs