W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2006

How to teach HtmlTidy to ignore jsp and struts tags

From: Satheesh <satish@ltp.soft.net>
Date: Fri, 8 Dec 2006 12:47:18 +0530
Message-ID: <002c01c71a98$e5386ce0$2201a8c0@LisleTechIN.ltp.soft.net>
To: <html-tidy@w3.org>
Hi,
    I need to teach the HtmlTidy to ignore jsp tags and struts tag like <html-el:form> and<bean:message>

    I tried with config.txt

I have tried like,

config.txt
-----------
new-pre-tags: <html-el:form>

And in the command line
-----------------------------------
tidy -config config.txt -f errors.txt -m changeLocale.jsp

In The error.txt
---------------------
line 5 column 1 - Warning: missing <!DOCTYPE> declaration
line 15 column 9 - Error: <html-el:form> is not recognized!
line 15 column 9 - Warning: discarding unexpected <html-el:form>
line 17 column 17 - Warning: <td> isn't allowed in <body> elements
line 17 column 17 - Warning: inserting implicit <table>
line 17 column 17 - Warning: missing <tr>
line 19 column 40 - Error: <html-el:errors> is not recognized!
line 19 column 40 - Warning: discarding unexpected <html-el:errors>
line 23 column 41 - Error: <bean:message> is not recognized!
line 23 column 41 - Warning: discarding unexpected <bean:message>
line 24 column 41 - Error: <bean:message> is not recognized!
line 24 column 41 - Warning: discarding unexpected <bean:message>
line 28 column 25 - Warning: missing </span> before <table>
line 34 column 76 - Error: <bean:message> is not recognized!
line 34 column 76 - Warning: discarding unexpected <bean:message>
line 37 column 49 - Error: <html-el:select> is not recognized!
21 warnings, 7 errors were found! Not all warnings/errors were shown.

This document has errors that must be fixed before
using HTML Tidy to generate a tidied up version.

How can i go about this......
Received on Friday, 8 December 2006 15:14:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:56 GMT