W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2001

Tidy messes up X(HT)ML documents

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Fri, 05 Jan 2001 22:50:53 +0100
Message-Id: <5.0.2.1.2.20010105224837.00a83330@pop.gmx.net>
To: html-tidy@w3.org
Hi,

I've got the following XHTML document

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" [

    <!ENTITY myURI "http://www.websitedev.de/xhtml/xhtml1/">

]> <html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<p><a href="&myURI;">Test</a></p>
</body>
</html>

When i run tidy in -asxml and/or -xml mode, the document is messed up, the 
entity declaration and reference are not recognized and "escaped" with 
&amp; i.e. tidy destroys the whole document.

-- 
Björn Höhrmann ^ mailto:bjoern@hoehrmann.de ^ http://www.bjoernsworld.de
am Badedeich 7 ° Telefon: +49(0)4667/981028 ° http://bjoern.hoehrmann.de
25899 Dagebüll # PGP Pub. KeyID: 0xA4357E78 # http://www.websitedev.de/
Received on Friday, 5 January 2001 16:51:00 GMT

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