xmlwf -c -d do not generates well-formed markup

Marc Mongenet <[email protected]>
Newsgroups gmane.text.xml.expat.general
Message-ID <[email protected]>
Hello,

if I run:
   xmlwf -c -d /tmp bug.xml

with bug.xml containing:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<e a="A&eacute;">123</e>
</html>

the result is:

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
&eacute;123</e>
</html>

The start tag for e is lost and the entity ref in the attribute is copied.

I use the stable Debian package: 1.95.8
Same result with expat compiled from sources.

Marc Mongenet
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.