Re: help with dtds

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 UTC