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

Re: Validating ASP pages SOLUTION found

From: David Dorward <david@dorward.me.uk>
Date: Wed, 1 Aug 2007 18:29:10 +0100
Message-Id: <49393AE1-3309-45B7-9AC3-5A27F1A4C689@dorward.me.uk>
Cc: www-validator Community <www-validator@w3.org>
To: "Hoskin, Patricia J" <phoskin@att.com>

On 1 Aug 2007, at 18:21, Hoskin, Patricia J wrote:
> David:
> Responding to your message within the ***************

Please keep it on the mailing list.

> On the ASP pages ... the only thing before the <? Xml...?> is
> information for VBSCRIPT between <% ... %>

So that would be VBScript that gets processed by the ASP engine.  
Server side code, not client side code. So the client should never  
see it, the server should strip it out before it gets to the client.

> which when the validation
> tool looks at the pages it sees a "blank" line ... it is not a
> "purposeful" blank line, it is how the browser interprets the VBSCRIPT
> "code" ...

No, its how the code is written.

<?xml ?>

Everything between and including the <% and %> is processed by the  
server, leaving just the new line.

I'd assume the solution would be to write <% VBSCRIPT %><?xml ?>, but  
I tend to back away in fear when I encounter ASP and head off to more  
comfortable programming environments.

> when looking at any of the sites pages via a browser / view
> source ... it looks like a blank line is the first line ...

OK, so the file starts with a blank line.

> in other
> words, there are no blank lines at the beginning of each page ...

No, the file doesn't start with a blank line? You seem to be  
contradicting yourself.

> the
> VBSCRIPT is not shown, thus it "looks" like a blank line.

The VBSCRIPT isn't there, its been processed by the server.

> So the order you had shown (Some ASP code - new line - XML prolog) is
> incorrect ... it is
> * XML prolog

No, I think I was right the first time.

David Dorward
Received on Wednesday, 1 August 2007 17:29:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:53 UTC