Validation question?

P

Paul

HI! I am modifing a pearl template and Its in xhtml. I validate it at
w3c.org but there is one part that does not validate and I want to know what
I can do to make it validate and still work. The script and the error I get
is below. I tried removing the space between {= FROEACH missing_field =},
but it still does not validate.

Line 41 column 0: character data is not allowed here.
{= FOREACH missing_field =}Line 43 column 0: character data is not allowed
here.{= END =}*************** Pearl Part of the
Script**********************<td class="missing_main_cell"><h1
class="title">Missing Fields</h1>
<p>
The following fields were left blank in your submission form:
</p>
<ul>
{= FOREACH missing_field =}
<li>{= name =}</li>
{= END =}
</ul>
<p>
These fields must be filled in before you can successfully
submit the form.
</p>
<p>
Please use your back button to return to the form and
try again.</p>
<p>&nbsp; </p>
</td>

***********End of Pearl Script **************

Paul
 
R

Randy Webb

Paul said the following on 12/13/2006 10:56 PM:
HI! I am modifing a pearl template and Its in xhtml. I validate it at
w3c.org but there is one part that does not validate and I want to know what
I can do to make it validate and still work.

Are you validating your server side file or the HTML it outputs?

Also, put any script in external files in xHTML and it will save you a
lot of headaches with the validator.
 
P

Paul

Randy said:
Paul said the following on 12/13/2006 10:56 PM:

Are you validating your server side file or the HTML it outputs?

Also, put any script in external files in xHTML and it will save you a
lot of headaches with the validator.

HI! Thanks for the response. The script is a .trt which gets processed by
another file on the fly. I am not fimilar with pearl or its working so how
would I link to the external file and would it still work with the other
peral scripts?

Paul
 
R

Ronx

Easiest way (the method I use for scripts) is to open the page that uses
the template and validate the results. If the template formats form
results, then fill in and submit the form, then validate whatever is
returned (possibly by copying the returned code source and using that
for the validator).
--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.
FrontPage Support: http://www.frontpagemvps.com/
http://www.rxs-enterprises.org/fp
 
P

Paul

Ronx said:
Easiest way (the method I use for scripts) is to open the page that uses
the template and validate the results. If the template formats form
results, then fill in and submit the form, then validate whatever is
returned (possibly by copying the returned code source and using that
for the validator).

HI! Thanks, that's a smart idea. :)

Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top