David Dorward wrote:
Gabriella wrote:
>I have an asp file with css file. I would like to validate my asp
file (to make sure I don't have open divs without </div>, etc...).
You cannot validate ASP. You can only run the ASP to generate output,
which sounds like HTML given the context (ciwa.stylesheets isn't
really the place for this) and validate that.
You could write program code (in the programming language of your
choice) that would give the ASP different input so as to produce
different sets of output and then send that output to a validator.
But there isn't any software out there (as far as I know) which will
read your ASP and work out all possible output to find syntax errors
in that output.
It's impossible (isn't it?) I mean, I suppose that some ASP pages might
contain code for which the number of possible HTML outcomes was
deterministic - but in the general case, any given ASP page could have
an infinite variety of different outcomes.
From an ASP page it's possible to call library code; so even an ASP
parser couldn't predict how the page might execute, except in a limited
range of cases.
Therefore it's theoretically impossible to predict whether an arbitrary
ASP page will always, sometimes or never produce valid HTML. Only a warm
geek can do that.
Of course, if the ASP were produced in accordance with some specified
scheme, and were restricted to some set of known libraries, then it
could in theory be be validated.
--
Jack.
http://www.jackpot.uk.net/