Log in

View Full Version : Resolved W3C Markup Validation for XHTML Mobile Profile 1.0



Ryan Fitton
07-03-2010, 03:54 PM
I am receiving errors on the W3C Validator regarding the XHTML doctype that i have put on my mobile website. Here are the validation results:

http://validator.w3.org/check?uri=http%3A%2F%2Fryanfitton.co.uk%2Fm%2F&cha rset=%28detect+automatically%29&doctype=Inline&gro up=0

I have inserted the XHTML 1.0 Doctype like this in the top of the websites code:

<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">



I believe it is the Doctype that is causing me the problem because the w3c validator is saying the doctype cannot be found:

"Line 88, Column 1: could not get "/xhtml-mobile10-model-1.mod" from "www.openmobilealliance.org" (reason given was "Not Found")"

I have also checked the validation on the BBC Mobile website because it using the same doctype as what my mobile website is. And it produces the same error; the W3C Validator is saying that the doctype cannot be found.

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fmobile%2Findex.html&charset=%28detect+automatically%29&doctype=Inline&group=0 (http://validator.w3.org/check?uri=http%3A%2F%2Fwww.bbc.co.uk%2Fmobile%2Findex.html&charset=%28detect+automatically%29&doctype=Inline&group=0)

the same error is displayed:

Line 88, Column 1: could not get "/DTD/xhtml-mobile10-model-1.mod" from "www.openmobilealliance.org" (reason given was "Not Found")

Is there anyway i can fix this? I have already emailed the Open Mobile Alliance about this :/

Many thanks, Ryan.

djr33
07-03-2010, 07:08 PM
That's not a real "problem" except that it makes it hard to code. It doesn't matter if it doesn't validate (with that validator), just that you have valid code.
My only advice would be to validate it using a similar doctype and make sure all the code is fine. Then just switch doctypes.
Hopefully in time it will be fixed. It's not your fault their doctype isn't available.
On the other hand, if it is never available then it won't be helping your page much either so you may want to use another.

Ryan Fitton
07-03-2010, 07:22 PM
Hi, thanks for replying :)

I have tried validating it by taking the doctype out and it does pass just says there ain't a doctype available lol.. like i say; i ave already emailed them twice about it. And if they wont sort it out soon then i will change to another doctype. But because it is a mobile website i'm unsure about choosing another doctype, i dont know of any other doctypes that would be suitable for a mobile website. :)

djr33
07-03-2010, 07:25 PM
Temporarily just pick the standard one for the same language for regular computers. XHTML 1.0 Strict, for example. If that works, then it's probably close to the mobile standards. At least that'll help you design a bit. And hopefully it'll be fixed soon.

Good luck.

Ryan Fitton
07-03-2010, 07:43 PM
ohh :)


Okay I will try that, thanks very much for your help with this, it's been frustrating me.