Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Mark Adler
On Jan 29, 2010, at 11:55 AM, Daniel Veillard wrote: > Okay, thanks, I don't know when I will be up for a release, maybe > I can find time in the next 2 week, not 100% garanteed though :-\ Daniel, I'm guessing that I won't release 1.2.4 sooner than a month from now. Mark ___

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 11:08:23AM -0800, Mark Adler wrote: > On Jan 29, 2010, at 11:37 AM, Daniel Veillard wrote: > > Probably something to write in release notes or something, even if > > it's really libxml2 fault, people upgrading to 1.2.4 need to be aware > > they need to upgrade libxml2 first,

Re: [xml] HTML fragments

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 05:44:46PM +0100, Joachim Zobel wrote: > Hi. > > I am using libXML2 (Perl module) to parse HTML fragments, which it > kindly does. Unfortunally it adds enclosing and tags. This > is annoying for me since the fragment later is included in the middle of > another document.

Re: [xml] Strange behavior with xmlParseInNodeContext and HTML documents

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:10:58PM +0100, Daniel Veillard wrote: > On Fri, Jan 29, 2010 at 12:16:40AM -0800, Aaron Patterson wrote: > > Hi, I'm trying to use xmlParseInNodeContext along with an HTML > > document. It seems to be exhibiting strange behavior, but I'm not > > sure. > > > > It seems t

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Mark Adler
On Jan 29, 2010, at 11:37 AM, Daniel Veillard wrote: > Probably something to write in release notes or something, even if > it's really libxml2 fault, people upgrading to 1.2.4 need to be aware > they need to upgrade libxml2 first, Daniel, I'll put it in the README and on the zlib.net near the do

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 09:41:54AM -0800, Mark Adler wrote: > On Jan 29, 2010, at 9:58 AM, Daniel Veillard wrote: > > The problem with pushing a new libxml2 is that it takes quite a bit of > > time on my side, and I don't have much, so please synchronize, > > Daniel, > > I'll let you know when 1.

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Mark Adler
On Jan 29, 2010, at 9:58 AM, Daniel Veillard wrote: > The problem with pushing a new libxml2 is that it takes quite a bit of > time on my side, and I don't have much, so please synchronize, Daniel, I'll let you know when 1.2.4 is imminent. Mark ___ xm

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 09:16:35AM -0800, Mark Adler wrote: > On Jan 29, 2010, at 3:25 AM, Daniel Veillard wrote: > > We should however synchronize so > > that I push a new libxml2 release before the next stable zlib one, > > > > right ? > > Daniel, > > Right. > > Also there's no problem with

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Mark Adler
On Jan 29, 2010, at 3:25 AM, Daniel Veillard wrote: > We should however synchronize so > that I push a new libxml2 release before the next stable zlib one, > > right ? Daniel, Right. Also there's no problem with pushing it now, since in addition to the fact that the patch will work with the e

[xml] HTML fragments

2010-01-29 Thread Joachim Zobel
Hi. I am using libXML2 (Perl module) to parse HTML fragments, which it kindly does. Unfortunally it adds enclosing and tags. This is annoying for me since the fragment later is included in the middle of another document. How can I turn this off? Thx, Joachim __

Re: [xml] xinclude on same resource - xpointer="element(c2/1)" fails

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:48:06PM +0100, Piotr Bański wrote: > Hi Daniel, > > A minor xptr/element()-spec-related point: > > On 2010-01-29 11:45, Daniel Veillard wrote: > > On Fri, Jan 29, 2010 at 12:26:41AM +0100, c3459823592...@arcor.de wrote: > >> Hi, > >> > >> I'm using xinclude with xpoint

Re: [xml] patch: copying unlinked namespaced node

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 07:14:29AM -0500, Rob Richards wrote: > If there are namespaces in an unlinked node which were defined in an > ancestor, when copying the node the namespace is just thrown away. > The attached patch will reconcile the namespaces in the new node if > namespace cant be found i

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 06:24:27AM -0500, Rob Richards wrote: > Daniel Veillard wrote: > >On Fri, Jan 22, 2010 at 06:53:42AM -0500, Rob Richards wrote: > >>Daniel Veillard wrote: > >>> Instead of running the test suite by running the runtest binary > >>>try to run it at the make level, but not sure

[xml] patch: copying unlinked namespaced node

2010-01-29 Thread Rob Richards
If there are namespaces in an unlinked node which were defined in an ancestor, when copying the node the namespace is just thrown away. The attached patch will reconcile the namespaces in the new node if namespace cant be found in either of the trees. Rob diff --git a/tree.c b/tree.c index 3b66

Re: [xml] xinclude on same resource - xpointer="element(c2/1)" fails

2010-01-29 Thread Piotr Bański
Hi Daniel, A minor xptr/element()-spec-related point: On 2010-01-29 11:45, Daniel Veillard wrote: > On Fri, Jan 29, 2010 at 12:26:41AM +0100, c3459823592...@arcor.de wrote: >> Hi, >> >> I'm using xinclude with xpointer element()-scheme to include an existing >> element of the same resource at a

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Mike Hommey
On Fri, Jan 29, 2010 at 12:25:36PM +0100, Daniel Veillard wrote: > On Sun, Jan 24, 2010 at 09:03:33PM -0800, Mark Adler wrote: > > On Jan 22, 2010, at 9:54 AM, Nix wrote: > > > These results are inverted, so in 1.2.3.5, gzdirect() returns 0 even > > > when the input source file is not compressed at

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Rob Richards
Daniel Veillard wrote: On Fri, Jan 22, 2010 at 06:53:42AM -0500, Rob Richards wrote: Daniel Veillard wrote: Instead of running the test suite by running the runtest binary try to run it at the make level, but not sure if it works on Windows see Relaxtests target in Makefile.am, it doe

Re: [xml] gzdirect() doesn't work in zlib 1.3.5.5 (at least) (was Re: libxml violates the zlib interface and crashes)

2010-01-29 Thread Daniel Veillard
On Sun, Jan 24, 2010 at 09:03:33PM -0800, Mark Adler wrote: > On Jan 22, 2010, at 9:54 AM, Nix wrote: > > These results are inverted, so in 1.2.3.5, gzdirect() returns 0 even > > when the input source file is not compressed at all. > > All, > > zlib 1.2.3.7 is available, which can be used in addi

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 22, 2010 at 06:53:42AM -0500, Rob Richards wrote: > Daniel Veillard wrote: > > Instead of running the test suite by running the runtest binary > >try to run it at the make level, but not sure if it works on Windows > > > >see Relaxtests target in Makefile.am, it does the same but with

Re: [xml] Trying to make sense of testsuite errors with libxml2 2.7.6

2010-01-29 Thread Daniel Veillard
On Fri, Jan 22, 2010 at 08:28:26AM -0500, Rob Richards wrote: > Daniel Veillard wrote: > >On Fri, Jan 22, 2010 at 12:37:10PM +0100, Martin B. wrote: > >>C:\AccuRev\trappel\Testprojects\libxml2-2.7.6> > >>C:\AccuRev\trappel\Testprojects\libxml2-2.7.6>xmllint --relaxng > >>test/relaxng/tutorA.rng ./t

Re: [xml] Strange behavior with xmlParseInNodeContext and HTML documents

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:16:40AM -0800, Aaron Patterson wrote: > Hi, I'm trying to use xmlParseInNodeContext along with an HTML > document. It seems to be exhibiting strange behavior, but I'm not > sure. > > It seems that when I'm dealing with HTML documents, no matter what > context node I giv

Re: [xml] xinclude on same resource - xpointer="element(c2/1)" fails

2010-01-29 Thread Daniel Veillard
On Fri, Jan 29, 2010 at 12:26:41AM +0100, c3459823592...@arcor.de wrote: > Hi, > > I'm using xinclude with xpointer element()-scheme to include an existing > element of the same resource at a different location. The following bar.xml > gives an example. In cruft-element with ID "c4" I'm includi

[xml] Strange behavior with xmlParseInNodeContext and HTML documents

2010-01-29 Thread Aaron Patterson
Hi, I'm trying to use xmlParseInNodeContext along with an HTML document. It seems to be exhibiting strange behavior, but I'm not sure. It seems that when I'm dealing with HTML documents, no matter what context node I give xmlParseInNodeContext, I always end up with an entire HTML document returne