O.K. I found what I was looking for, but it wasn't easy. If anyone else should 
have this problem in the future, the description of the available properties is 
at:

http://tidy.sourceforge.net/docs/quickref.html

The controlling property for this issue is not obvious from the name. It is:

"drop-font-tags"

The explanation from the web page is:

"This option specifies if Tidy should discard <FONT> and <CENTER> tags without 
creating the corresponding style rules. This option can be set independently of 
the clean option."

The example I used to base my <target> on had this element:

<parameter name="drop-font-tags" value="true" />

While my input docs did not have either of the mentioned tags, I tried 
remarking that parameter line from my build.xml file as a semi-educated guess. 
When I ran ant against that build file, the mysterious <style/> section and the 
unwanted "class" attributes both disappeared from my output.
-- 
Charles Knell
[EMAIL PROTECTED] - email



-----Original Message-----
From:     [EMAIL PROTECTED]
Sent:     Fri, 25 May 2007 10:38:44 -0400
To:       [email protected]
Subject:  Seeking clear explanation of jtidy task properties

I am working with the ant jtidy task for the first time. It produces output 
that I didn't expect based on my experience using HTML Tidy embedded in my 
programmer's editor (UltraEdit). Specifically, jtidy is adding its own <style/> 
section and inserting class attributes from that <style/> section in elements 
in the output.

I don't want that.

I suspect that there is a property I could set that would stop it from doing 
that, but Googling around for a clear explanation of:

1) What is the structure of a jtidy properties file?
2) What features of jtidy can be configured using properties?
3) Examples of various properties set different ways and the output generated 
based on that.

has so far proved bootless.

What's available at 
http://jtidy.sourceforge.net/apidocs/org/w3c/tidy/ant/JTidyTask.html is too 
terse for me. It's barely more than a list, with little explanatory matter.

Can someone point me in the right direction? Thanks.

-- 
Charles Knell
[EMAIL PROTECTED] - email

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to