Re: [xml] Bug with encoding of external parameter entities?
- From: Daniel Veillard <veillard redhat com>
- To: Morus Walter <morus walter xipolis net>
- Cc: xml gnome org
- Subject: Re: [xml] Bug with encoding of external parameter entities?
- Date: Sun, 22 Apr 2001 06:49:51 -0400
On Tue, Apr 03, 2001 at 05:08:16PM +0200, Morus Walter wrote:
Hi,
I had a look on libxslt and found a problem which seems to originate
from libxml.
When I have a document and a external dtd in ISO-8859-1 encoding and
declare an entity to be an 8bit character, the instanciation of the
entity gives a wrong result.
Just for the record, this is fixed now,
orchis:~/XML -> cat ent.dtd
<?xml version="1.0" encoding="ISO-8859-1"?>
<!ENTITY test '¿'>
orchis:~/XML -> cat doc.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE test SYSTEM "ent.dtd" [
<!ELEMENT test (#PCDATA)>
]>
<test>&test; ¿</test>
orchis:~/XML -> xmllint --valid --noent --encode "ISO-8859-1" doc.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE test SYSTEM "ent.dtd" [
<!ELEMENT test (#PCDATA)>
]>
<test>¿ ¿</test>
orchis:~/XML ->
thanks for the report,
Daniel
--
Daniel Veillard | Red Hat Network http://redhat.com/products/network/
veillard redhat com | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]