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

Validating ASP pages SOLUTION found

From: Hoskin, Patricia J <phoskin@att.com>
Date: Tue, 31 Jul 2007 15:26:27 -0400
Message-ID: <24D5F2204CBFC84499520C14CC11036C030A3536@vna-exch1.gsi.grci.com>
To: <www-validator@w3.org>
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. 




image002.jpg
(image/jpeg attachment: image002.jpg)

image003.jpg
(image/jpeg attachment: image003.jpg)

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

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