[Expat-bugs] [ expat-Bugs-1271642 ] ill-formed output for `xmlwf -c -d` on ISO-8859-1
SourceForge.net
noreply at sourceforge.net
Thu Aug 25 17:46:42 CEST 2005
Bugs item #1271642, was opened at 2005-08-25 07:26
Message generated for change (Comment added) made by kwaclaw
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1271642&group_id=10127
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
>Group: Test Required
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Karl Waclawek (kwaclaw)
Summary: ill-formed output for `xmlwf -c -d` on ISO-8859-1
Initial Comment:
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é">123</e>
</html>
then 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>
é123</e>
</html>
The start tag for e is lost and the entity ref in the
attribute is copied.
Note that this bug does not happen if the encoding is
UTF-8 or US-ASCII.
Bug reproduced by a third party, see:
http://mail.libexpat.org/pipermail/expat-discuss/2005-August/001880.html
----------------------------------------------------------------------
>Comment By: Karl Waclawek (kwaclaw)
Date: 2005-08-25 11:46
Message:
Logged In: YES
user_id=290026
It appears this is caused by an inapproriate call to the default
handler in appendAttributeValue(). Removing this call seems
to fix the problem. Please apply and test the patch attached
as file patch1.diff.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=110127&aid=1271642&group_id=10127
More information about the Expat-bugs
mailing list