Validating ASP pages SOLUTION found

Whomever:

After I settled down this afternoon, as I was rather upset when the
pages that did validate no longer validated ... I tried varies things.

Following is the what I would receive with the INPUT option:

 

On any page I would try I would either get the above or the below with
the UPLOAD and URL options:

 

This afternoon ... I decided to try all this again

The first line of every page is VBSCRIPT information and then the XML
stuff comes next: ... following is what is seen/copied when a page is
"view source" ...

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">



Before the <?xml version....?> is a blank line, this morning I would use
the back button to the INPUT validation option page and remove the blank
line and it still would not validate ... the actual code for these pages
are:

++++++++++++++++

<%@ language=VBSCRIPT %>
<%
Option Explicit
Response.CacheControl = "no-cache" 
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/tr/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

++++++++++++++++

The above is in an include file.  So, I put the <% VBSCRIPT... stuff%>
after the <? ... "en"> and the page itself would not work.  So, back the
VB information went to where it belonged.  I then decided to give the
validation tool one more try; when I used the "view the source code" of
one of the page, I copied it ONLY from the <?xml... to the end of the
document, rather than getting that 1st empty line ... and the page
validated.

So, with your new tool, I will have to remember NOT to have the empty
1st line and copy only from <?xml... to the end of the page.  No
problem, I can do this; at least the pages are now validating.

Patty Hoskin
540-891-9399

NOTE: Whenever possible, give the address of the document you were
checking. 

Received on Tuesday, 31 July 2007 19:26:35 UTC