Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > asp tidy

Reply
Thread Tools

asp tidy

 
 
Anthony
Guest
Posts: n/a
 
      09-18-2004
I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I use
it ALL the time after running my .asp's... however (As you can imagine)..
this is a longer process then I want... :

For example :

Run .asp save source, run tidy, examine html source determine where the
error is (IN what line) go to my .asp and find where the html is generated
from... fix it.. run again

As you can tell a long process ...

Does anyone have a way for .asp / html syntax using a tool such as tidy
without having to do all the above steps? (Possibly look at potential HTML
output PRIOR to generating?) Or, does anyone have a .asp parser to check
for syntax errors? (Understand this could show completely different
problems)..

Thank you...


 
Reply With Quote
 
 
 
 
Anthony
Guest
Posts: n/a
 
      09-18-2004
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah.com/test/mytest.asp"
Set objHTTP = CreateObject("MSXML2.XMLHTTP")
Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.ResponseText

C:\temp>getweb | tidy -e -quiet
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
line 21 column 1 - Warning: <table> lacks "summary" attribute
line 29 column 1 - Warning: <table> lacks "summary" attribute
line 51 column 1 - Warning: <table> lacks "summary" attribute
line 97 column 1 - Warning: <table> lacks "summary" attribute
line 143 column 1 - Warning: <table> lacks "summary" attribute
line 189 column 1 - Warning: <table> lacks "summary" attribute
line 235 column 1 - Warning: <table> lacks "summary" attribute
line 261 column 1 - Warning: <table> lacks "summary" attribute


"Anthony" <> wrote in message
news:...
> I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I

use
> it ALL the time after running my .asp's... however (As you can imagine)..
> this is a longer process then I want... :
>
> For example :
>
> Run .asp save source, run tidy, examine html source determine where the
> error is (IN what line) go to my .asp and find where the html is generated
> from... fix it.. run again
>
> As you can tell a long process ...
>
> Does anyone have a way for .asp / html syntax using a tool such as tidy
> without having to do all the above steps? (Possibly look at potential HTML
> output PRIOR to generating?) Or, does anyone have a .asp parser to check
> for syntax errors? (Understand this could show completely different
> problems)..
>
> Thank you...
>
>



 
Reply With Quote
 
 
 
 
Mark Schupp
Guest
Posts: n/a
 
      09-20-2004
how about this one http://validator.w3.org/


--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com


"Anthony" <> wrote in message
news:...
> forget it.. I should use google more :
>
> C:\temp>type getweb.vbs
> url="http://mywebpage.blah.com/test/mytest.asp"
> Set objHTTP = CreateObject("MSXML2.XMLHTTP")
> Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
> objHTTP.Send
> wscript.echo objHTTP.ResponseText
>
> C:\temp>getweb | tidy -e -quiet
> line 1 column 1 - Warning: missing <!DOCTYPE> declaration
> line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
> line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
> line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
> line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
> line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
> line 21 column 1 - Warning: <table> lacks "summary" attribute
> line 29 column 1 - Warning: <table> lacks "summary" attribute
> line 51 column 1 - Warning: <table> lacks "summary" attribute
> line 97 column 1 - Warning: <table> lacks "summary" attribute
> line 143 column 1 - Warning: <table> lacks "summary" attribute
> line 189 column 1 - Warning: <table> lacks "summary" attribute
> line 235 column 1 - Warning: <table> lacks "summary" attribute
> line 261 column 1 - Warning: <table> lacks "summary" attribute
>
>
> "Anthony" <> wrote in message
> news:...
> > I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I

> use
> > it ALL the time after running my .asp's... however (As you can

imagine)..
> > this is a longer process then I want... :
> >
> > For example :
> >
> > Run .asp save source, run tidy, examine html source determine where the
> > error is (IN what line) go to my .asp and find where the html is

generated
> > from... fix it.. run again
> >
> > As you can tell a long process ...
> >
> > Does anyone have a way for .asp / html syntax using a tool such as tidy
> > without having to do all the above steps? (Possibly look at potential

HTML
> > output PRIOR to generating?) Or, does anyone have a .asp parser to

check
> > for syntax errors? (Understand this could show completely different
> > problems)..
> >
> > Thank you...
> >
> >

>
>



 
Reply With Quote
 
Anthony
Guest
Posts: n/a
 
      09-20-2004
Thanks but tidy is better for me because it's an Internal website
"Mark Schupp" <> wrote in message
news:%...
> how about this one http://validator.w3.org/
>
>
> --
> Mark Schupp
> Head of Development
> Integrity eLearning
> www.ielearning.com
>
>
> "Anthony" <> wrote in message
> news:...
> > forget it.. I should use google more :
> >
> > C:\temp>type getweb.vbs
> > url="http://mywebpage.blah.com/test/mytest.asp"
> > Set objHTTP = CreateObject("MSXML2.XMLHTTP")
> > Call objHTTP.Open("GET", url, FALSE, "username", "mypass")
> > objHTTP.Send
> > wscript.echo objHTTP.ResponseText
> >
> > C:\temp>getweb | tidy -e -quiet
> > line 1 column 1 - Warning: missing <!DOCTYPE> declaration
> > line 240 column 78 - Warning: unescaped & or unknown entity "&protocol"
> > line 244 column 77 - Warning: unescaped & or unknown entity "&protocol"
> > line 248 column 77 - Warning: unescaped & or unknown entity "&protocol"
> > line 252 column 79 - Warning: unescaped & or unknown entity "&protocol"
> > line 256 column 79 - Warning: unescaped & or unknown entity "&protocol"
> > line 21 column 1 - Warning: <table> lacks "summary" attribute
> > line 29 column 1 - Warning: <table> lacks "summary" attribute
> > line 51 column 1 - Warning: <table> lacks "summary" attribute
> > line 97 column 1 - Warning: <table> lacks "summary" attribute
> > line 143 column 1 - Warning: <table> lacks "summary" attribute
> > line 189 column 1 - Warning: <table> lacks "summary" attribute
> > line 235 column 1 - Warning: <table> lacks "summary" attribute
> > line 261 column 1 - Warning: <table> lacks "summary" attribute
> >
> >
> > "Anthony" <> wrote in message
> > news:...
> > > I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and

I
> > use
> > > it ALL the time after running my .asp's... however (As you can

> imagine)..
> > > this is a longer process then I want... :
> > >
> > > For example :
> > >
> > > Run .asp save source, run tidy, examine html source determine where

the
> > > error is (IN what line) go to my .asp and find where the html is

> generated
> > > from... fix it.. run again
> > >
> > > As you can tell a long process ...
> > >
> > > Does anyone have a way for .asp / html syntax using a tool such as

tidy
> > > without having to do all the above steps? (Possibly look at potential

> HTML
> > > output PRIOR to generating?) Or, does anyone have a .asp parser to

> check
> > > for syntax errors? (Understand this could show completely different
> > > problems)..
> > >
> > > Thank you...
> > >
> > >

> >
> >

>
>



 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      09-21-2004
IMO looking before generating is almost useless. In most cases, there is a
whole logic in the generation that wouldn't be efficient.

What I would like really to be able when something is enabled to have a
class that take over the Response object. This class would save the
genereted HTML to its own buffer and would output then both the HTML and the
tidy diags at the end.

I don't know tidy at all. Can it be called directly from an ASP page ? I
would like to give it a try with ASP and/or ASP.NET...

TIA

Patrice

--

"Anthony" <> a écrit dans le message de
news:...
> I love the HTML Cleaner-upper Tidy... http://tidy.sourceforge.net and I

use
> it ALL the time after running my .asp's... however (As you can imagine)..
> this is a longer process then I want... :
>
> For example :
>
> Run .asp save source, run tidy, examine html source determine where the
> error is (IN what line) go to my .asp and find where the html is generated
> from... fix it.. run again
>
> As you can tell a long process ...
>
> Does anyone have a way for .asp / html syntax using a tool such as tidy
> without having to do all the above steps? (Possibly look at potential HTML
> output PRIOR to generating?) Or, does anyone have a .asp parser to check
> for syntax errors? (Understand this could show completely different
> problems)..
>
> Thank you...
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML Tidy in ASP.NET Christoph Schneegans ASP .Net 2 04-27-2009 11:00 PM
QUERY: clean/tidy for Visual Studio OR ASP code KevinGPO ASP General 1 02-03-2006 03:15 PM
sending command line arguements to HTML Tidy d davis Perl 0 04-27-2004 02:23 PM
HTML to XML Conversion - Difficulty with Tidy and TagSoup Eric Java 0 12-30-2003 01:54 AM
Tidy configuration Chris Harris HTML 3 07-02-2003 12:18 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57