XML output, 2 errors

Even though I set -asxml, the output was not well-formed.  These are the two
errors I've come across:

1) < and & are not escaped in uncommented blocks of JavaScript
2) duplicate attributes are not removed

Regarding #2, in the event that the values are exactly the same (which was
the case in my work), Tidy should simply delete one of them.  If they are
different, one of the values should be thrown away.  Which?  All but the
first?  (I don't care.)

I'm trying to generate an XSLT stylesheet from HTML input by the user (after
being Tidied).  So far, it works beautifully, except for the two problems
mentioned above.

Thanks,

Evan Lenz
elenz@xyzfind.com
http://www.xyzfind.com
XYZFind Corp. "Building Better Search"

Received on Monday, 28 August 2000 14:50:04 UTC