Posted by StantonR 1 year 31 weeks ago
Hi There
I have set my DOCTYPE to the following
On page preinit I am setting my ContentType to
Page.Response.ContentType = "application/xhtml+xml";
I have tried testing in the Mobi ready website but it still says my XML mobile profile is incorrect what else do I need to do.
All my html tags and server side tages are configured correctly.
Thanks
Stanton




Posted by StantonR 1 year ago
Sorry this is the DOCTYPE I am using
DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd
Posted by mattan 1 year ago
Hmm.. I just made a sample page trying to validate and I got the same; "Your page does not use XHTML Mobile Profile" and "Your page markup does not validate".
However, it does validate against http://validator.w3.org/mobile/ without any warnings and I'm pretty sure it used to validate against .mobi validator as well.
The code I used:
<?php header('Content-type: application/xhtml+xml; charset=UTF-8'); header('Cache-Control: public'); ?> <?xml version="1.0" encoding="utf-8" ?> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hello world</title> <meta name="viewport" content="width=device-width" /> <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> <meta http-equiv="Cache-Control" content="public" /> </head> <body> <div><p>hello world</p></div> </body> </html>Anyone who actually can get it to validate properly?
Posted by uGoMobi 1 year ago
Hi,
Same problem here. Was just testing a simple page but couldn't get the markup validated.
I found out http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd returns a Page Not Found.
So I guess no one with DTD XHTML-MP 1.2 can get his/her page validated as long as the DTD is not available.
If you change the DTD on your test page to XHTML Basic 1.1 for example you will see your page will pass the markup validation test.
Posted by mattan 1 year ago
Tried the XHTML Basic 1.0 now and it validated. Seems like someone has messed up at OMA when using mod_rewrite, or something, since the "/tech/DTD/" part of the url gets removed.
Thanks for the info uGoMobi!
Posted by ruadhan 1 year ago
Mobile Champion
Are you still experiencing the validation problem - we restarted the validator today, and I'm not seeing any problems. Can you share the URL you're testing?
Ruadhan O'DonoghuedotMobi
Posted by uGoMobi 1 year ago
After I noticed the problem I sent an e-mail to the OMA IT helpdesk. Last friday they replied to me that the link to the xhtml-mobile12.dtd is not redirected anymore to an incorrect link.
I don't experience problems anymore with validation.