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

Stripping Duplicate Attributes in HTML --> XML generation

From: Sandip Ghosh <sandipg@pacbell.net>
Date: Fri, 19 Nov 1999 08:37:26 -0800
To: html-tidy@w3.org
Message-id: <010301bf32ac$5da48510$6957c33f@sandip.pacbell.net>
Hello,

I am using HTML-Tidy to generate a XML version of the HTML document. A problem I ran into was with duplicate attributes that causes XML parsers to choke on the generated XML.

If the input HTML is:

<TD WIDTH=40 NOWRAP ALIGN=RIGHT VALIGN=TOP NOWRAP>

The generated XML is:

<TD
width="40"
nowrap="nowrap"
align="RIGHT"
valign="TOP"
nowrap="nowrap">


Is it possible to fix HTML tidy so that it check for duplicate attributes and eliminates duplicates in the source for XML generation.

Thanks
-Sandip
Received on Friday, 19 November 1999 11:41:15 GMT

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