DOCTYPE error

M

Mike

Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

The top part of my HTML coding

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"
lang="en-US">
<head profile="http://www.w3.org/2000/08/w3c-synd/#"><meta
http-equiv="Content-Type" content="text/html; charset=utf-8" />

<meta name="keywords" content="bottlepal, zapcap, zap cap, zapacap, zap
a cap, bottle opener, novelty bottle opener, novelty" />
<meta name="description" content="Bottlepal bottle openers are unique
gadgets that make opening your bottled beverage a fun and unique
experience" />



BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:

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.


--------------------------------------------------------------------------------

End tag 'div' does not match the start tag 'IMG'. Error processing
resource 'ftp://u40859955-mikesal:[email protected]...

<div style="text-align: center;"><IMG
SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
ALT="lo...
 
B

Benjamin Niemann

Mike said:
Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

[snip]

BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:

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.
^^^^^^^^^
You have just posted the login credentials to your webspace.
*Change your password as soon as possible!!!*
<div style="text-align: center;"><IMG
SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
ALT="lo...

The relevant part seems to be missing, but I think, you forgot to close the
IMG element (<IMG ... /> instead of <IMG ... >).

Element and attribute names are case-sensitive in XHTML, you'll have to use
lower case. Are you sure you need XHTML?
 
J

Jim Moe

Mike said:
Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

The top part of my HTML coding

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

Delete the "<?xml ...?>" part. IE does not understand it and does not
like it.
Run your site through an [X]HTML validator:
<http://validator.w3.org/>
<http://www.htmlhelp.com/tools/validator/>
 
B

Beauregard T. Shagnasty

Mike said:
Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

The top part of my HTML coding

<?xml version="1.0" encoding="utf-8"?>

Then, after you change your password, remove the above first line, fix
the img element error, and resend the page to your web server.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Doctype should be exactly as you show it here, uppercase and all.
End tag 'div' does not match the start tag 'IMG'. Error processing
resource 'ftp://u40859955-mikesal:[email protected]...

<div style="text-align: center;"><IMG
SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
ALT="lo...

Image elements need to have a closing slash for XHTML, as do several
other elements.

<img src="..." alt="..." height="nnnpx" width="nnnpx" />
 
J

Jukka K. Korpela

Jim said:
Delete the "<?xml ...?>" part. IE does not understand it and does not
like it.

The problem with the <?xml ...?> part, with respect to IE, is that it throws
IE into "quirks mode". This is just a special case of IE's cluelessness in
"doctype sniffing": it treats _anything_ before a DOCTYPE declaration as
requesting compatibility with old, broken versions of IE, i.e. "quirks
mode". This need not be serious, and it might lack any observable effects,
though this depends on the page markup and especially the associated style
sheet(s).

IE does not understand XHTML _at all_, so skipping the <?xml ...?> part is
irrelevant. (Though it matters as "garbage before the DOCTYPE" to IE, in the
above-mentioned sense.)

Apparently the OP has the page in an environment where it is sent with HTTP
headers that specify the Internet media type as e.g. application/xml+xhtml
and not text/html. This is just fine except for the fact that it is
completely unsuitable in practice at present and in the near future in the
WWW context, where most people use IE, which fails to process that media
type in a useful way.

The morale is that XHTML should not be used as document distribution format
on the WWW anytime soon, but this fact has been presented and argumented so
many times in this group that I can safely leave it unmentioned here, can't
I?
 
J

Jim Moe

Jukka said:
The morale is that XHTML should not be used as document distribution format
on the WWW anytime soon, but this fact has been presented and argumented so
many times in this group that I can safely leave it unmentioned here, can't
I?
Yes, indeed.
 
M

Mike

Benjamin said:
Mike said:
Hi folks, I attempted to upload my simple website using IE and ftp and
received an error. Below is the top section of my code, below this is
the error IE gave me. Any help on how to correct this error would be
greatly appreciated! Mike Salish

[snip]

BELOW IS THE ERROR MESSAGE I RECEIVED AFTER I UPLOADED VIA IE FTP:

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.
^^^^^^^^^
You have just posted the login credentials to your webspace.
*Change your password as soon as possible!!!*
<div style="text-align: center;"><IMG
SRC="http://i100.photobucket.com/albums/m16/mikesal3731/57b9272a.jpg"
ALT="lo...

The relevant part seems to be missing, but I think, you forgot to close the
IMG element (<IMG ... /> instead of <IMG ... >).

Element and attribute names are case-sensitive in XHTML, you'll have to use
lower case. Are you sure you need XHTML?

Thanks Benjamin, I have changed my password, someone did get into and
they uploaded a ton of files onto my domain, I removed them all and
things seem ok now. Mike
 
B

Benjamin Niemann

Mike said:
Thanks Benjamin, I have changed my password, someone did get into and
they uploaded a ton of files onto my domain, I removed them all and
things seem ok now. Mike

Such blunders can quickly bite you. The evildoers are lurking behind every
corner - it's a cruel world (wide web)...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top