dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasfind.mobiInstant Mobilizer

Posted by pfwd 1 year 36 weeks ago

pic
 pfwd
mobiForge Newbie
Posts: 2
Joined: 1 year ago
[offline]

I am new to devloping .mobi sites. I went through the mobiForge training video and am giving it a try. I downloaded the 110.zip template on mobiForge. When I test that file itself in Firefox using the HTML validation extension, I get the error "URL not supported by this version", referring to the DOCTYPE declaration there:

<?xml version="1.0" encoding="ISO-8859-1"?>

Then it says "DTD did not contain element declaration for document type name". So there are 55 more errors because it doesn't recognize any of the elements. Is this an old DOCTYPE declaration? I don't know much at all about XML, so I am really lost here.

Posted by ruadhan 1 year ago

pic
 ruadhan
dotMobi logo
Mobile Guru
Posts: 453
Joined: 2 years ago
[offline]

Hi,

This appears to be a shortcoming of the HTML Validator extension for Firefox. The HTML Validator (SGML version) does not have the XHTML Mobile Profile 1.0 DTD bundled with it. When the validator comes across the DOCTYPE in the dotMobi template file, it is not able to handle it correctly since there is no DTD to reference. The other 55 errors occur as a result of this: the parser comes across various elements in the document, but it does not recognise them since it does not have the appropriate DTD.

To put your mind at rest - you could do one of the following:

(1) switch the HTML Validator to use HTML Tidy algorithm for validation. You can do this in the Options menu of the HTML Validator extension. The page will validate correctly now.

(2) use the online W3C validator to validate - this is integrated into the HTML Validator extension. Simply right-click the HTML Validator icon in the bottom right of your Firefox browser, and then choose Advanced -> Online W3c Html Validator. This will submit the contents of your browser to the W3C online validator, and you will see that the page validates.

(3) Use ready.mobi. One of the tests that ready.mobi carries out is markup validation!

Ruadhan

 

Ruadhan O'Donoghue
mobiForge

Posted by pfwd 1 year ago

pic
 pfwd
mobiForge Newbie
Posts: 2
Joined: 1 year ago
[offline]

Thank you!! Luckily, I had found the W3C validator and found that I was vaildating OK there, so I felt better.

I hope dev.mobi will correct the training video. It is a great step-by-step video, but it is frustrating to follow the steps, including using the Firefox validator, and have it not work! The link to the templates doesn't work either. I had to search the site to find them.