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="containe r">
<p class="marquee" >content goes here</p>
</div>
</body>
</html>
[/PHP]
8 5196 kestrel 1,071
Recognized Expert Top Contributor
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
RedSon 5,000
Recognized Expert Expert
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="containe r">
<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.
kestrel 1,071
Recognized Expert Top Contributor
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><ti tle><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
kestrel 1,071
Recognized Expert Top Contributor
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.
kestrel 1,071
Recognized Expert Top Contributor 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 (that part's not here -- spotlighting the problem code):
--------BEGIN CODE PAGE------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
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, column 13: there is no attribute "SRC"
<bgsound src="C:\My Documents\zingwent.mids">
You have used the attribute named above in your document, but the document
type you are using does not support that attribute for this element. This
error is...
|
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 processing instruction target matching "" is not allowed."
The offending line is:
<?xml version="1.0" encoding="iso-8859-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 http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="keywords" content="CIW, XHTML 1.0, Habitat for Humanity"/>
<meta name="Description" content="Simple XHTML page for Habitat site"/>
|
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.
Originally ASP.Net was automatically genarating a "name" attribute that
was failing the validation. Then I added:
<system.web>
<xhtmlConformance mode="Strict" />
| |
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) - Attribute..... is not a valid
attribute of.....
Validation (XHTML 1.0 Transitional) - Attribute..... is considered
outdated. A newer construct is recommended.
Validation (XHTML 1.0 Transitional) - Attribute values must be enclosed
in quotation marks.
|
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
********************************************************
For this teeny job, please refer to:
http://feeds.reddit.com/feed/8fu/?o=25
|
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>
<title>Reflection/Roundcorners Demo</title>
<script type="text/javascript" src="scripts/reflection.js"></script>
<script type="text/javascript" src="scripts/rounded_corners_lite_inc.js"></script>
<style type="text/css">
|
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. It works quite nicely and I like the way it works. The problem is I am working on a site where the html needs to validate using STRICT. This form doesn't validate with STRICT because I use a name on the form and not and id. Could someone show me...
|
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 form for formatting and the input fields are necessary for
getting data.
Error 3 Validation (XHTML 1.1): Element 'br' cannot be nested within element
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |