Hi Frank, one item on tidy's todo list (follow link from tidy page) is - sort attributes in canonical order It makes sense to takle your problem in combination with this task. BTW: what should be the default when the attribute values are contradictory (e.g. <foo align="right" align="center">) Take the first - get rid of both or quit with error? On Sun, 20 Aug 2000, Frank Steuer wrote: > JTidy, 4. August > > Example: > > <table border="0" cellpadding="0" cellspacing="0" bgcolor="ffffff" > align="center" height="100%" width="100%" align="center" valign="middle"> > > I now saw very often webpages out there where attributes are defined twice > (by mistake). These double existing attributes are copied by jtidy in the > result document. > > The xerces parser I use with xalan e.g. does not accept these twice > defined attributes and exits the conversion process XML->*ml using XSL. > > Is this going to be covered by one of the next versions of tidy or should > I write an additional filter to eleminate one of these attributes ? > > frank > --------------------------------------------------- > Frank Steuer > steuer@ece.orst.edu > for public PGP-key: finger -l steuer@ece.orst.edu > --------------------------------------------------- > > -- Cheers alex Alexander Biron work: http://www.ifh.de/~biron/ private: Tel (+49)33762-77-233 Tel(+49)30-4948857 mailto:biron@ifh.de mailto:biron@frohnau-flamingos.deReceived on Monday, 21 August 2000 04:50:18 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:37:48 GMT