- From: Neerav Modi <neerav@sayni.net>
- Date: Sun, 3 Sep 2006 09:10:09 +0000
- To: www-validator@w3.org
There are some pages which must be validated using "direct input" rather than urls or files because of the need for signin, cookies, etc. When submitting the source code (xhtml-mp) in the direct input box, there is obviously no MIME type, so I receive the following error or warning: =======Error ======= Unknown Parse Mode! The MIME Media Type () for this document is used to serve both SGML and XML based documents, and it is not possible to disambiguate it based on the DOCTYPE Declaration in your document. Parsing will continue in SGML mode. =======End error======= Continuing in SGML mode results in invalid code. There are no advanced options for manually setting the MIME type. What can be done or how can I include the MIME type? The xhtml-mp code is as follows. Any help/guidance would be appreciated. =======code======= <?xml version="1.0"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://gmobile.sayni.net/DTD/xhtml-mobile10.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title>Compose Mail - Attachments</title> <meta http-equiv="content-type" content="application/vnd.wap.xhtml+xml; charset=UTF-8"/><link href="css/gmobile.css" rel="stylesheet" type="text/css"/><meta http-equiv="refresh" content="5; url=compose.php?action=up_done&z=it08wk547z&gmid=abcdefg"/><meta http-equiv="Cache-Control" content="max-age=1, must-revalidate, no-cache"/></head> <body> <p><b>Compose Mail - Attachments</b><br/><em>1) Uploaded "dl.php". </em></p><p class="ctr"> [0] <a href="compose.php?action=up_done&z=it08wk547z&gmid=abcdefg" accesskey="0">Continue</a></p><hr class="c"/><p class="ctr"> <!-- Please do not remove the following lines --> <small>Powered by:<br/>gmail-mobile</small></p></body> </html> =======end code======= The "custom" DTD is not really custom, it's simply a fixed one using fully qualified urls because the "official" DTD uses a relative location for an official mod which gives a 404 error. -- Neerav
Received on Monday, 4 September 2006 14:16:44 UTC