Re: [xml] libxml-2.3.3 amd libxslt-0.4.0 are out

Date view Thread view Subject view Author view

From: Daniel Veillard (veillard@redhat.com)
Date: Sun Mar 04 2001 - 13:28:18 EST


On Sun, Mar 04, 2001 at 05:18:37PM +0000, Gary Pennington wrote:
>
> Hi,
>
> There appears to be a regression in this release. xmllint has stopped working
> with my xml documents and generates errors such as
>
> calvin:dev/ASPSE/src:$ xmllint --valid /etc/pool.conf
> file:///usr/share/lib/xml/dtd/rm_all.dtd:14: validity error: PEReference: %;
> not found
> %rm_core;
[...]
> ff30c47c xmlNewElementContent (1, 2, b4, 1, 21dc0, ff2d5b8c) + 20c
> ff2d5b68 xmlParseElementChildrenContentDecl (54f10, ff28abe4, b6, 1,
> ff3e0000, ff3a02d4) + 1008
> ff2d4c8c xmlParseElementChildrenContentDecl (54f10, 7, 69230, ff136000,
> 21de8, ff0c1b68) + 12c
> ff2d61fc xmlParseElementContentDecl (54f10, 420c0, ffbee6b0, 69230, 21dc0,
> ff2cd754) + 2bc
> ff2d6d30 xmlParseElementDecl (54f10, 0, 0, 0, 0, 0) + a30
> ff2d72a8 xmlParseMarkupDecl (54f10, 0, 0, 0, 0, 0) + b0
> ff2d97ac xmlParseExternalSubset (54f10, 56750, 567c0, 567c0, 0, 0) + 6e4
[...]
>
> I'm too wasted to do more debugging today, but has anybody got any pointers
> for me on what may have changed in this release before I start my debugging
> session tomorrow? This was all working with 2.3.2.

  yep, sure, I know what's happening !
I optimized parsing speed a lot, but seem I forgot someting obvious
the % character has a special value within the internal and external
subset. Basically when parsing the Dtd we should not call xmlParseName()
or xmlParseCharData() but xmlParseNameComplex() and
xmlParseCharDataComplex().

  My mistake, I will try to provide a patch tomorrow.

Daniel

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
veillard@redhat.com  | libxml Gnome XML toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
----
Message from the list xml@rpmfind.net
Archived at : http://xmlsoft.org/messages/
to unsubscribe: echo "unsubscribe xml" | mail  majordomo@rpmfind.net


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Sun Mar 04 2001 - 14:43:32 EST