Forum Moderators: coopster

Message Too Old, No Replies

Cannot have a DOCTYPE declaration outside of a prolog

         

dereknw

3:43 pm on Jun 8, 2004 (gmt 0)

10+ Year Member



Hi All,

I am developing a php site in Dreamweaver MX and keep getting the following error on several pages:

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.

Cannot have a DOCTYPE declaration outside of a prolog. Error processing resource 'http://www.nticw.co.uk/admin/search_users_res.php?

<?xml version="1.0" encoding="iso-8859-1"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-----------------------------------------------------^

If i remove the following code put on by Dreamweaver: <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">";?> the errors clear but I loose the css formatting!

Any help would be very well recieved!

Thanks

coopster

8:24 pm on Jun 11, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, dereknw!

What type of stylesheet/markup are you using? XSL? CSS?

dereknw

9:58 am on Jun 14, 2004 (gmt 0)

10+ Year Member



Hi, Thanks for your reply. I'm using a CSS stylesheet.
<link rel="stylesheet" type="text/css" media="all" href="../css/style.css" />

coopster

2:23 am on Jun 20, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Have you checked to make sure the paths are correct within the code? Also, make sure the documents actually exist in the paths specified.