Commenting out the following lines in the CGI.PM resolved the error. I don't know if this is the correct way or not, if anyone has a different way to solve this, pls. let me know.
Thanks Bal. # if ($dtd) { # if (defined(ref($dtd)) and (ref($dtd) eq 'ARRAY')) { # $dtd = $DEFAULT_DTD unless $dtd->[0] =~ m|^-//|; # } else { # $dtd = $DEFAULT_DTD unless $dtd =~ m|^-//|; # } # } else { # $dtd = $XHTML ? XHTML_DTD : $DEFAULT_DTD; # } # # $xml_dtd++ if ref($dtd) eq 'ARRAY' && $dtd->[0] =~ /\bXHTML\b/i; # $xml_dtd++ if ref($dtd) eq '' && $dtd =~ /\bXHTML\b/i; # push @result,q(<?xml version="1.0" encoding="utf-8"?>) if $xml_dtd; # # if (ref($dtd) && ref($dtd) eq 'ARRAY') { # push(@result,qq(<!DOCTYPE html\n\tPUBLIC "$dtd->[0]"\n\t"$dtd->[1]">)); # } else { # push(@result,qq(<!DOCTYPE html\n\tPUBLIC "$dtd">)); # } # push(@result,$XHTML ? qq(<html><head><title>$title</title>) # : qq(<html lang="$lang"><head><title>$title</title>)); # push(@result,$XHTML ? qq(<html xmlns="http://www.w3.org/1999/xhtml" lang="$lang"><head><title>$title</title>) # : qq(<html lang="$lang"><head><title>$title</title>)); # if (defined $author) { # push(@result,$XHTML ? "<link rev=\"made\" href=\"mailto:$author\" />" # : "<link rev=\"made\" href=\"mailto:$author\">"); # } -----Original Message----- From: Sabherwal, Balvinder (MBS) [mailto:[EMAIL PROTECTED]] Sent: Monday, May 13, 2002 10:05 AM To: [EMAIL PROTECTED] Subject: [cgiapp] CGI Error Importance: High The XML page cannot be displayed Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. ---------------------------------------------------------------------------- ---- A declaration was not closed. Error processing resource 'http://dbainet/cgi-bin/graphpvt.cgi'. Line 1, Position 1 Guru's I am getting error as mentioned above. This is being generated on the execution of a perl script which had been working fine in the past and nothing has been changed in this script. This script is based on the CGI::Application template. Any help would be greatly appreciated. Thanks Bal. --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- Web Archive: http://www.mail-archive.com/cgiapp@lists.vm.com/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]