Hey Mark,

Ok It didnt work because I have a <textarea

Which isnt allowed.

How can I add the FORMS module to my XHTML setup?

<!ENTITY % xhtml-target.module "INCLUDE"> <![%xhtml-target.module;[ <!ENTITY % xhtml-target.mod PUBLIC "-//W3C//ELEMENTS XHTML Target Module//EN" "http://www.w3.org/TR/xhtml-modularization/DTD/xhtml-target-1.mod"> %xhtml-target.mod;]]>

thats what I have for the TARGET MODULE...

im guessing the FORMS module is similar, just replace TARGET with FORMS...

or something similar to that...
I read there is a forms module, and a basic forms module...

I just havent worked out where you find out, how to add it all...
because the above string confuses me...
:)

thanks everyone!
Chris Stratford
[EMAIL PROTECTED]
Http://www.neester.com


Mark Stanton wrote:
Hey Chris

The DTD says:

<!ELEMENT form %form.content;>

So <form> can only contain elements in the %form.content entity.

<!ENTITY % form.content "(%block; | %misc;)*">

So form.content means the %block entitiy & the %misc entity.

<!ENTITY % block
     "p | %heading; | div | %lists; | %blocktext; | fieldset | table">

Keep following this sort of logic through the DTD.....

<!ENTITY % heading "h1|h2|h3|h4|h5|h6">
<!ENTITY % lists "ul | ol | dl">
<!ENTITY % blocktext "pre | hr | blockquote | address">

...and...

<!ENTITY % misc "noscript | %misc.inline;">
<!ENTITY % misc.inline "ins | del | script">

So after all that we can deduce that you are only allowed the following tags
immediately inside your <form>: p, div, fieldset, table, h1, h2, h3, h4, h5,
h6, ul, ol, dl, ins, del, script.

If you read the validator message again: 

'Line 36, column 18: document type does not allow element "label" here;
missing one of "ins", "del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div",
"address", "fieldset" start-tag'

This is exactly what its saying (almost).

If you change:

<label for="">Name:</label>
<input id="name" name="name" type="text" /><br />

<label for="">Email Address:</label>
<input id="email" name="email"type="text" /><br />

To:

<p><label for="">Name:</label>
<input id="name" name="name" type="text" /></p>

<p><label for="">Email Address:</label>
<input id="email" name="email"type="text" /></p>

You should be right!


Cheers

Mark


------------------
Mark Stanton 
Technical Director 
Gruden Pty Ltd 
Tel: +61 2 9299 9462 
Fax: +61 2 9299 9463 
Mob: +61 410 458 201 
http://www.gruden.com 

*****************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
***************************************************** 




  
***************************************************** The discussion list for http://webstandardsgroup.org/ See http://webstandardsgroup.org/mail/guidelines.cfm for some hints on posting to the list & getting help *****************************************************

Reply via email to