[Expat-discuss] xmlwf -c -d do not generates well-formed markup

Marc Mongenet marc.mongenet at gmail.com
Sun Aug 21 00:09:52 CEST 2005


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


More information about the Expat-discuss mailing list