Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / July 2006



Tip: Looking for answers? Try searching our database.

How do I validate asp

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Gabriella - 28 Jul 2006 17:16 GMT
Hi,
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...).
Since it's a big file, I am searching for an automatic tool to validate
the asp, not only the css.
Where can I find such tool?

Thanks, Gabi.
PDannyD - 28 Jul 2006 18:36 GMT
On Friday 28 July 2006 17:16, Gabriella [frohlinger@yahoo.com] wrote in
message <1154103372.403994.279460@i42g2000cwa.googlegroups.com>

> Hi,
> I have an asp file with css file.
[quoted text clipped - 3 lines]
> the asp, not only the css.
> Where can I find such tool?

Does this help?

http://validator.w3.org/docs/help.html#manual

"If, for some reason, you prefer running your own instance of the Markup
Validator, check out our developer's documentation."
http://validator.w3.org/docs/devel.html
David Dorward - 28 Jul 2006 18:43 GMT
> 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.

Signature

David Dorward       <http://blog.dorward.me.uk/>   <http://dorward.me.uk/>
                    Home is where the ~/.bashrc is

Jack - 28 Jul 2006 20:01 GMT
>> 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...).
[quoted text clipped - 10 lines]
> 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.

Signature

Jack.
http://www.jackpot.uk.net/

Harlan Messinger - 28 Jul 2006 20:56 GMT
>>> 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...).
[quoted text clipped - 15 lines]
> deterministic - but in the general case, any given ASP page could have
> an infinite variety of different outcomes.

Sure. What would a validator do with:
    <%
        dim x
        x = "div"
    %>
    <div><<%=x%>></div>

What if the value of x were chosen at random from an array of several
tag names?
Jim Moe - 28 Jul 2006 23:34 GMT
> 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...).

 View the page in a (non-IE) browser. Save the page as some HTML file.
Validate that file.

Signature

jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)

Darin McGrew - 28 Jul 2006 23:52 GMT
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...).

>   View the page in a (non-IE) browser. Save the page as some HTML file.
> Validate that file.

With Opera, you can view the page and hit Ctrl-Alt-V to send it to the
validator.
Signature

Darin McGrew, mcgrew@stanfordalumni.org, http://www.rahul.net/mcgrew/
   Web Design Group, darin@htmlhelp.com, http://www.HTMLHelp.com/

"Adventure is nothing but a romantic name for trouble." - Louis L'Amour

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.