...

View Full Version : Problems validating



manders
11-11-2008, 04:23 PM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title Goes Here</title>
<LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
</head>

Above is the validation code im using.
When I run my index page with the validation code in it comes up with the follwing errors...

Unable to Determine Parse Mode!

The validator can process documents either as XML (for document types such as XHTML, SVG, etc.) or SGML (for HTML 4.01 and prior versions). For this document, the information available was not sufficient to determine the parsing mode unambiguously, because:

AND..

No DOCTYPE found, and unknown root element. Aborting validation.

The DOCTYPE Declaration was not recognized or is missing. This probably means that the Formal Public Identifier contains a spelling error, or that the Declaration is not using correct syntax, or that your document is not using a DOCTYPE Declaration.

When I open up the code over on the ftp the doctype part of the code looks like the following...

<!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt-->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="main.css" type="text/css" rel="StyleSheet" />

Any ideas as this has been bugging me all afternoon?

Thanks in advance guys!

Manders

Apostropartheid
11-11-2008, 04:27 PM
DOCTYPES must start capitalized (<!DOCTYPE html SYSTEM> rather than <!doctype html SYSTEM>). A body element is explicitly required in XHTML and you haven't closed your html element.
Is that the real code over FTP? If it's...very wrong...and I assume it's not supposed to be like that.

manders
11-11-2008, 04:37 PM
Ok I changed the DOCTYPE to caps and its still the same.
I have got opening and closing body and html tags in the code im trying to validate but I just havn't displayed it on here.

Yeah the doctype code changes to <--ctype etc. Im editing it online using "zymic" free web hosting. Could this be the problem?

manders
11-12-2008, 03:53 PM
Can anyone help Im really stuck with this? :(

I've tried everything, even researched on the internet to help. I have a feeling its something small and silly though!

Thanks guys

Apostropartheid
11-12-2008, 04:34 PM
Can we have a link?

manders
11-13-2008, 12:50 PM
http://validator.w3.org/check?uri=http%3A%2F%2Fwww.flyawaytours.vndv.com%2Findex.html&charset=%28detect+automatically%29&doctype=Inline&group=0

http://www.flyawaytours.vndv.com/index.html

Thanks in advance

Manders

brazenskies
11-13-2008, 01:17 PM
you have no DocType at all?

manders
11-13-2008, 03:01 PM
When I upload my html document the code reads:

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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title Goes Here</title>
<LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
</head>
<body>
etc..........
etc..........
</body>
</html>

Then when you click on view source on the actual webpage it reads as you can see:

<!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

Thanks

udjamaflip
11-13-2008, 03:12 PM
When I upload my html document the code reads:

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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title Goes Here</title>
<LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />
</head>
<body>
etc..........
etc..........
</body>
</html>

Then when you click on view source on the actual webpage it reads as you can see:

<!--CTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

Thanks

Here is an example from a known working page that validates in XHTML 1.0 Transitional, try copying and pasting this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

effpeetee
11-13-2008, 03:41 PM
According to my private validator, there should be no capital letters in this line.

<LINK HREF="main.css" REL="StyleSheet" TYPE="text/css" />

I don.t know if that is your problem.

This code validates for my program. (cse80 - Validator)

It also validates with W3


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

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Title Goes Here</title>
<link href="main.css" rel="StyleSheet" type="text/css" />
</head>
<body>
etc..........
etc..........
</body>
</html>


Frank

effpeetee
11-13-2008, 04:06 PM
Here is a screen shot.

Frank

manders
11-13-2008, 06:10 PM
Thats excellent. Thankyou all!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum