W3C home > Mailing lists > Public > www-validator@w3.org > September 2006

Unknown Parse Mode! in form submission

From: Neerav Modi <neerav@sayni.net>
Date: Sun, 3 Sep 2006 09:10:09 +0000
Message-ID: <8b70118d0609030210y71e21185k31fc0a885dddbbc8@mail.gmail.com>
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.

<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML
Mobile 1.0//EN"
xmlns="http://www.w3.org/1999/xhtml"><head><title>Compose Mail -
<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;
http-equiv="Cache-Control" content="max-age=1, must-revalidate,
<p><b>Compose Mail - Attachments</b><br/><em>1) Uploaded "dl.php".
</em></p><p class="ctr">
[0]&nbsp;<a href="compose.php?action=up_done&amp;z=it08wk547z&amp;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>
=======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.

Received on Monday, 4 September 2006 14:16:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:49 UTC