I'm trying to build a mobile site (xhtml-mp) but cant get it to validate:
Can somebody advise me what to do with these errors? (From W3C)
1. Unknown Parse Mode!
2. Byte-Order Mark found in UTF-8 File.
3. character data is not allowed here.
The last one worries me because if I remove the entire line of code, the error jumps elsewhere.
I've Googled these all day and still no luck.
Thanks a lot,
The Originals
[PHP]<?php
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "(URL address blocked: See forum rules)" >
<html>
<head>
<meta http-equiv="Cache-Control" content="max-age=200" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="(URL address blocked: See forum rules)" rel="stylesheet" type="text/css" />
<title>The Originals Mobile Blog</title>
</head>
<body>
<div class="container">
<p class="marquee">content goes here</p>
</div>
</body>
</html>
[/PHP]
8 5188
what validator are you using? link?
I'm using the W3C page validator - Sorry I didn't know I was allowed to put links in my post ;)
Here are the results: http://validator.w3.org/check?verbos...ginals.mobi%2F
BTW I've changed the markup since my initial posting and am now only getting an "Unknown Parse Mode!" error.
The current markup passes the .mobi validation, which was my original goal, but I'd really like to understand, and correct the W3C error:
Thanks,
Matthew
I'm trying to build a mobile site (xhtml-mp) but cant get it to validate:
Can somebody advise me what to do with these errors? (From W3C)
1. Unknown Parse Mode!
2. Byte-Order Mark found in UTF-8 File.
3. character data is not allowed here.
The last one worries me because if I remove the entire line of code, the error jumps elsewhere.
I've Googled these all day and still no luck.
Thanks a lot,
The Originals
[PHP]<?php
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "(URL address blocked: See forum rules)" >
<html>
<head>
<meta http-equiv="Cache-Control" content="max-age=200" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="(URL address blocked: See forum rules)" rel="stylesheet" type="text/css" />
<title>The Originals Mobile Blog</title>
</head>
<body>
<div class="container">
<p class="marquee">content goes here</p>
</div>
</body>
</html>
[/PHP]
Does the validator give you a line number? If not you should try to comment out everything in your code except for the very very basic tags. Then run the validator. If that passes then uncomment another tag, run the validator again. Continue this process untill you can isolate which tag or line is causing the error. That will give you a better chance to debug it.
well, the unknown parse mode isnt the actual error
its the character data is not allowed here error thats failing your site.
Its saying that > isnt allowed to appear where it is, it could be a doctype problem, but im not seeing why it's receiving an error.
Hi there RedSon & Kestrel,
Thanks for the advice
RS: I've tried reducing the document to the xhtml skeleton <html><head><title><body> but I'm still getting the unknown parse mode error.
K: Do you think that the error might have something to do with the Byte-Order Mark? I've read a few treads on this subject, but still confused as to how to get rid of it. I'm writing the code with SciTE and setting the document encoding with that.
The mark up passes the .mobi validation with no problem, but I'm keen to understand the error, so I can avoid it in the future.
Any thoughts?
Matthew
to be completely honest. i cant figure out what the error is. Ive looked over the code and what not, and i have no idea. Sorry man.
You're using the Validator on a site that isn't really using a W3C standard profile. Hence, odd results.
XHMLT-MP isn't in the W3C Validator's repertoire. It's crapping out cause it's clueless how to handle what you're feeding it.
Sign in to post your reply or Sign up for a free account.
Similar topics
by: Akbar |
last post by:
Hey there,
Big-time curiosity issue here...
Here's the test code (it's not that long)... it's to display a large
number of image links with captions, ideally pulled in from an
external file...
|
by: mike |
last post by:
Hello,
After trying to validate this page for a couple of days now I was
wondering if someone might be able to help me out. Below is a list of
snippets where I am having the errors.
1. Line 334,...
|
by: Matthias Kaeppler |
last post by:
Hi,
I'm using phpWebSite to build my website and I want it to be standard
conforming. However, the CSS validator always outputs an error:
"Please, validate your XML document first!
The...
|
by: PATRICIA THOMPSON |
last post by:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta...
|
by: Inta_Rob |
last post by:
Hi all,
I'm writing a site using C#/ASP.Net 2.0 and trying to make the
resulting code valid XHTML 1.0 Strict, and i'm running into problem
with the auto generation of the <form> tag.
...
|
by: Radu |
last post by:
Hi. I have been working at home on a web project (VSNET 2005 SP1). Now
I have brought the project at work, and I suddenly have plenty of
warnings like:
Validation (XHTML 1.0 Transitional) -...
|
by: gunimpi |
last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431
********************************************************
VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help
wanted...
|
by: blueplato |
last post by:
<!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" lang="en">
<head>...
|
by: bdbeames |
last post by:
Ok I have a form validation problem that I need one of you javascript ninja s to help me with.
The following is a form with the javascript that I have used for the last year or two to validate. ...
|
by: Henry Stock |
last post by:
I can understand what these error messages are telling me, but I guess I am
not sure how to address them all.
The bold tag could be handled in a class attribute, but I need a <br/tag
inside the...
|
by: taylorcarr |
last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
| |