HighDots Forums  

How do I validate asp

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss How do I validate asp in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Gabriella
 
Posts: n/a

Default How do I validate asp - 07-28-2006 , 11:16 AM






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.


Reply With Quote
  #2  
Old   
PDannyD
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 12:36 PM






On Friday 28 July 2006 17:16, Gabriella [frohlinger (AT) yahoo (DOT) com] wrote in
message <1154103372.403994.279460 (AT) i42g2000cwa (DOT) googlegroups.com>

Quote:
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?
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


Reply With Quote
  #3  
Old   
David Dorward
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 12:43 PM



Gabriella wrote:

Quote:
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.

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


Reply With Quote
  #4  
Old   
Jack
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 02:01 PM



David Dorward wrote:
Quote:
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/


Reply With Quote
  #5  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 02:56 PM



Jack wrote:
Quote:
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.
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?


Reply With Quote
  #6  
Old   
Jim Moe
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 05:34 PM



Gabriella wrote:
Quote:
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.

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


Reply With Quote
  #7  
Old   
Darin McGrew
 
Posts: n/a

Default Re: How do I validate asp - 07-28-2006 , 05:52 PM



Gabriella wrote:
Quote:
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...).
Jim Moe <jmm-list.AXSPAMGN (AT) sohnen-moe (DOT) com> wrote:
Quote:
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.
--
Darin McGrew, mcgrew (AT) stanfordalumni (DOT) org, http://www.rahul.net/mcgrew/
Web Design Group, darin (AT) htmlhelp (DOT) com, http://www.HTMLHelp.com/

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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.