W3C home > Mailing lists > Public > www-validator@w3.org > July 2004

Re: help with dtds

From: Brenda <brenda@wallace.net.nz>
Date: Tue, 13 Jul 2004 08:31:57 +1200
To: www-validator@w3.org
Message-ID: <opsa1knja8hpzyq9@mail.wallace.net.nz>

No, it doesn't complain about the input tag.  The is only one error about  
the format parameter inside the input tag.
if i remove the format parameter then my wap page validates perfectly.
when you say "include the forms modules", do you mean i need to wrap  
inputs in a form??? i've done that much.

here's the entire wap2 page:

<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//OPENWAVE//DTD XHTML Mobile  
1.0//EN" "http://www.openwave.com/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Product Codes</title><style type="text/css">
body, p {
margin-top: 0;
margin-bottom: 0;
alignment: justify;
background: #FFFFFF;
}
.image {
background-color:#FFFFFF;
}
.head {
color:#003366;
margin-left:4;
margin-right:4;
}
a:link{
color:#003366;
}
a:visited{
color:#003366;
}
a:active{
color:#003366;
}
.story{
background-color:#FFFFFF;
margin-left:4;
margin-right:4;
alignment: justify;
}
.navigation{
color:#003366;
margin-left:4;
margin-right:4;
}

.navback{
background: #0099CC;
}
.navhome{
background: #006699;
}
.pagebottom{
background: #000033;
}
</style>
</head>
<body>
	<div class="image" align="left"><img src="../images/headers/products.png"  
alt="Products" width="128" height="40"/></div>
	<div class="story">Enter the five digit code for a Products codes can be  
found on xtra.co.nz/xxxxxxx</div>
	<form method="get" action="/mobile/quick.php"><input format="10N"  
name="eid" value=""/><br/><input name="ok" value="OK"  
type="submit"/></form>
	<div class="navback">:: <a href="index.php"  
class="navigation">Back</a><br /></div>
	<div class="pagebottom">&nbsp;</div>
</body></html>



On Mon, 12 Jul 2004, Brenda wrote:

> the dtd is
> http://www.openwave.com/DTD/xhtml-mobile10.dtd

That's a modular DTD.  Giving you full details is not really within the
scope of the validator, though a lower-level parser could help expand it
for you.  Amongst online tools, code valet[1] will give you the most
information ( http://valet.webthing.com/code/ ; see also the examples
at css.nu )

> inside this dtd i can find <input> defined as follows:

No, that doesn't define the ELEMENT <input>.  A quick glance at the
DTD suggests you have to include the forms module yourself to do that.
Does your validator report not complain that there's no such element
as <input> too?


-- 
Nick Kew

-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Received on Monday, 12 July 2004 16:30:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:14 GMT