How to teach HtmlTidy to ignore jsp and struts tags

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 UTC