473,802 Members | 2,432 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp tidy

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...
Jul 19 '05 #1
4 3885
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah. com/test/mytest.asp"
Set objHTTP = CreateObject("M SXML2.XMLHTTP")
Call objHTTP.Open("G ET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.Respons eText

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" <an*********@no spam.comcast.ne t> wrote in message
news:ez******** ******@tk2msftn gp13.phx.gbl...
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...

Jul 19 '05 #2
how about this one http://validator.w3.org/
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Anthony" <an*********@no spam.comcast.ne t> wrote in message
news:uP******** ******@TK2MSFTN GP10.phx.gbl...
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah. com/test/mytest.asp"
Set objHTTP = CreateObject("M SXML2.XMLHTTP")
Call objHTTP.Open("G ET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.Respons eText

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" <an*********@no spam.comcast.ne t> wrote in message
news:ez******** ******@tk2msftn gp13.phx.gbl...
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...


Jul 19 '05 #3
Thanks but tidy is better for me because it's an Internal website
"Mark Schupp" <ms*****@ielear ning.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.phx.gbl. ..
how about this one http://validator.w3.org/
--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Anthony" <an*********@no spam.comcast.ne t> wrote in message
news:uP******** ******@TK2MSFTN GP10.phx.gbl...
forget it.. I should use google more :

C:\temp>type getweb.vbs
url="http://mywebpage.blah. com/test/mytest.asp"
Set objHTTP = CreateObject("M SXML2.XMLHTTP")
Call objHTTP.Open("G ET", url, FALSE, "username", "mypass")
objHTTP.Send
wscript.echo objHTTP.Respons eText

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" <an*********@no spam.comcast.ne t> wrote in message
news:ez******** ******@tk2msftn gp13.phx.gbl...
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...



Jul 19 '05 #4
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" <an*********@no spam.comcast.ne t> a écrit dans le message de
news:ez******** ******@tk2msftn gp13.phx.gbl...
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...

Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1802
by: compu_global_hyper_mega_net_2 | last post by:
Greetings, usenet's obviously dying. Where's everyone hanging out? One of the yahoo groups or something? anyway. Hopefully someone picks this up: I'm trying to compile php-5.0.0RC2 with tidy support. ../configure --with-mysql=/usr/local/mysql --with-apxs2=/usr/local/apache2/bin/apxs
1
2152
by: Mike Gifford | last post by:
Hello Folks, I'm trying to get tidy set up on a pretty standard fedora core 1 server. Looks pretty simple from here: http://ca3.php.net/manual/en/ref.tidy.php Should just have to go: pear -v install tidy However, it won't work unless you have the following up and running on
0
3328
by: Börni | last post by:
Hello, I am using tidy to clean up an xml file, but my problem is that it replaces newlines with normal whitespaces. Still worse is that if i retrieve text from the xml file it contains all whitespaces tidy inserted to nicely render the file. The xml files are generated and retrieved with an DomDocument. preserveWhitespace is false. At the time i am solving the problem with some regexps and string
3
2780
by: Mike | last post by:
Greetings, I just used Tidy HTML for the first time. The address below contains the files need to check on Tidy's corrections. I would appreciate any feedback on the Tidy report and the necessity and validity of the changes Tidy has made or recommended. The following is obvious to me: line 194 column 98 - Warning: discarding unexpected </font>
12
17118
by: Stefan Weiss | last post by:
Hi. (this is somewhat similar to yesterday's thread about empty links) I noticed that Tidy issues warnings whenever it encounters empty tags, and strips those tags if cleanup was requested. This is okay in some cases (such as <tbody>), but problematic for other tags (such as <option>). Some tags (td, th, ...) do not produce warnings when they are empty.
0
1855
by: Christoph Schneegans | last post by:
Hi! I'd like to present an easy, yet powerful approach to use the HTML Tidy program from <http://tidy.sourceforge.net/> in ASP.NET. It is similiar to <http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_vstechart/html/tchVSAddinEnablingHTMLTidy.asp>. However, it is not implemented as a Visual Studio Add-in, but as a response filter. This way, the complete HTML source is tidied, including the output of web controls.
40
5619
by: VK | last post by:
Hi, After the response on my request from W3C I'm still unclear about Tidy vs. Validator discrepansies. That started with <IFRAME> issue, but there is more as I know. Anyway, this very basic HTML page: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://www.w3.org/TR/html401/strict.dtd"> <html> <head>
0
1886
by: BG Mahesh | last post by:
hi I have installed Tidy on Fedore Core 4.0 using RPM. I have a very simple script that uses tidy, ------------tidy.php------------------ <html>a html document</html> <? $html = ob_get_clean(); // Specify configuration
1
20221
by: Martin Odhelius | last post by:
Hello, Does anybody here have any example code for Tidy.Net (http://sourceforge.net/projects/tidynet/) ? I can't find one single example. I try to convert a html-string to well formed xhtml, but the only output I get is /r/n Any help would be appreciated :)
0
5039
by: kempshall | last post by:
Can somebody please tell me how to install the Tidy module for PHP 5 on a Mac? I tried what the php.net website said, which is running the command "pecl install tidy" but the installation failed somewhere in the make script. (It looks like PECL is trying to install Tidy version 1.2, even though the documentation says that's only for PHP4.) Any help would be greatly appreciated. Here's the output from the "pecl install tidy" command in...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9561
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10302
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10058
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9111
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6835
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3789
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.