Below is the source used for this validation:
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
3 <html>
4 <head>
5 <title>JTidy servlet extension - Live examples</title>
6 <meta http-equiv="Expires" content="-1">
7 <meta http-equiv="Pragma" content="no-cache">
8 <meta http-equiv="Cache-Control" content="no-cache">
9 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
10 <meta name="author" content="Vlad Skarzhevskyy">
11 <meta name="email" content="vlads(at)users.sourceforge.net">
12 <link rel="stylesheet" href="./styles/examples.css" type="text/css" media="all">
13 <style type="text/css" media="all">
14 @import url("./styles/maven-base.css");
15 @import url("./styles/maven-theme.css");</style>
16 <script type="text/javascript" src="./js/timeZoneDetection.js"></script>
17 </head>
18 <body onload="setTimezoneOffsetCookie()">
19
20
21
22
23 <div id="banner">
24 <a href="http://sourceforge.net" id="organizationLogo">
25 <img alt="sourceforge" src="http://sourceforge.net/sflogo.php?group_id=13153&type=2"></a>
26 <a href="http://jtidy.sourceforge.net" id="projectLogo">
27 <img alt="JTidy Servlet" src="./images/logo.png"></a>
28 <div class="clear"><hr></div>
29 </div>
30
31 <div id="breadcrumbs">
32 <div class="xleft">
33 JTidy servlet extension - Live examples
34 <span class="separator">|</span>
35 <a href="index.jsp">Examples Home</a>
36 <span class="separator">|</span>
37 <a href="http://jtidy.homelinux.net/" class="externalLink">Documentation</a>
38 </div>
39 <div class="xright">
40 RequestID: 52 <span class="separator">|</span> Time: 14:44:45 GMT+00:00
41 </div>
42 <div class="clear"><hr></div>
43 </div>
44
45 <div id="backDiv">
46 <a href="javascript:history.go(-1)"><img alt="Back" src="./images/back.gif"></a>
47 </div>
48
49 <div id="showsourceDiv">
50 <a href="/jtidyservlet-webapp/example-validate-upload.jsp.source">View JSP Source</a><br>
51 <a href="/jtidyservlet-webapp/JTidy?result=1&requestID=52&action=report">This HTML Source</a>
52 </div>
53
54 <div id="JTidyValidationImageDiv">
55
56 <script type="text/javascript">
57
58 function showJTidyReport_iframe() {
59 if ((ppJTidyReport != null) && (ppJTidyReport.ppmShow != null)) {
60 return ppJTidyReport.ppmShow();
61 } else {
62 // No frame support or some other error
63 return true;
64 }
65 }
66
67 </script>
68
69 <a name="JTidyValidationImageCommonLink" id="JTidyValidationImageCommonLink" href="/jtidyservlet-webapp/JTidy?requestID=52&action=report&src=1"
onclick="this.blur();return showJTidyReport_iframe();"><img name="JTidyValidationImageCommon" id="JTidyValidationImageCommon"
alt="Page Validation" src="/jtidyservlet-webapp/JTidy?requestID=52&action=image" width="32" height="26" >
</a>
70 <iframe name="ppJTidyReport"
71 id="ppJTidyReport"
72 src="./iframe_main.jsp?requestID=52"
73 scrolling="no" frameborder="0" style="visibility:hidden; z-index:999; left:50px; position:absolute;">
74 Sory No support for iframe in your browser
75 </iframe>
76 </div>
77
78 <div id="body">
79
80
81
82
83
84
85
86 <h3>Validate by File Upload</h3>
87
88 This form allows you to upload files from your computer and have them validated using jtidy
89
90 <form name="uploadForm" method="post" action="/jtidyservlet-webapp/example-validate-upload.jsp" enctype="multipart/form-data"
>
91
92 Please select the file that you would like to upload:<br/>
93
94 <input type="file" name="htmlFile" value="" size="30"><br/>
95
96 <input type="submit" value="Validate this file">
97
98 </form>
99
100
101
102
103 <!-- This will disable tidy Processing since current Tidy is corrupting HTML -->
104
105 <br>
106 N.B. there are bug in development version of jtidy so the HTML output of this page is not the JTidy output. We used <code>
<jtidy:pass/></code> tag.
107
108
109
110 </div>
111
112 <div id="firefox">
113 <a href="http://www.spreadfirefox.com/?q=affiliates&id=0&t=68"><img border="0" alt="Get Firefox!" title="Get Firefox!"
src="http://www.spreadfirefox.com/community/images/affiliates/Buttons/88x31/take.gif"/></a>
114 </div>
115
116 <div id="validxhtml">
117 <a href="http://validator.w3.org/check?uri=referer">
118 <img border="0"
119 src="http://www.w3.org/Icons/valid-html401"
120 alt="Valid HTML 4.01!" height="31" width="88"></a>
121 </div>
122
123 <div id="footer">
124 <div class="xleft">
125 Please send any questions or suggestions to
126 <a href="mailto:vlads(at)users.sourceforge.net">vlads(at)users.sourceforge.net</a>
127 </div>
128 </div>
129
130 </body>
131 </html>
EOF