473,379 Members | 1,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Help with W3C page validation - xhtml-mp

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]
May 13 '07 #1
8 5187
kestrel
1,071 Expert 1GB
what validator are you using? link?
May 14 '07 #2
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
May 14 '07 #3
RedSon
5,000 Expert 4TB
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.
May 14 '07 #4
kestrel
1,071 Expert 1GB
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.
May 14 '07 #5
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
May 15 '07 #6
kestrel
1,071 Expert 1GB
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.
May 17 '07 #7
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.
May 19 '07 #8
kestrel
1,071 Expert 1GB
as good an answer as any
May 20 '07 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

14
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...
6
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,...
9
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...
1
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...
5
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. ...
2
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) -...
0
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...
1
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>...
3
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. ...
2
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
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...
0
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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 using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.