From eseidel@apple.com Mon Oct 3 03:45:42 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A778A3B109A for ; Mon, 3 Oct 2005 03:45:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18308-10 for ; Mon, 3 Oct 2005 03:45:40 -0400 (EDT) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by menubar.gnome.org (Postfix) with ESMTP id BB48A3B19DB for ; Mon, 3 Oct 2005 03:45:39 -0400 (EDT) Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out3.apple.com (8.12.11/8.12.11) with ESMTP id j937jbZ8010764 for ; Mon, 3 Oct 2005 00:45:37 -0700 (PDT) Received: from [17.219.208.189] (unknown [17.219.208.189]) by relay6.apple.com (Apple SCV relay) with ESMTP id 09C824C3 for ; Mon, 3 Oct 2005 00:45:36 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v746.1) To: xml@gnome.org Message-Id: <22315C06-DFB7-41F6-B91A-95F080790A27@apple.com> Content-Type: multipart/alternative; boundary=Apple-Mail-2--305521582 From: Eric Seidel Date: Mon, 3 Oct 2005 00:45:33 -0700 X-Mailer: Apple Mail (2.746.1) X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.823 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_XH] X-Spam-Score: -1.823 X-Spam-Level: Subject: [xml] Adding pre-defined namespaces X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 07:45:42 -0000 --Apple-Mail-2--305521582 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Are there any ways when using an xml SAX2 push parser, to push a couple "predefined" namespaces on the namespace lookup stack before beginning the parse? For example, some SVGs incorrectly use the xlink prefix w/o first defining it. We would (unfortunately) like to support those SVGs. Another example is when parsing document fragments for things such as setInnerHTML in an xhtml context... There we need to build up a "namespace stack" representing the current document context before doing the actual parse. Thanks for your time. -eric ---------------------------- Eric Seidel eseidel@apple.com Safari/WebKit Apple Computer --Apple-Mail-2--305521582 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1 Are there any ways when using an = xml SAX2 push parser, to push a couple "predefined" namespaces on the = namespace lookup stack before beginning the parse?

For example, some SVGs = incorrectly use the xlink prefix w/o first defining it.=A0 We would = (unfortunately) like to support those SVGs.=A0 Another example is when = parsing document fragments for things such as setInnerHTML in an xhtml = context...=A0 There we need to build up a "namespace stack" representing = the current document context before doing the actual = parse.

Thanks = for your time.

-eric

----------------------------

Eric Seidel

eseidel@apple.com

Safari/WebKit

Apple Computer

=

= --Apple-Mail-2--305521582-- From nilesh.jain@intel.com Mon Oct 3 14:34:33 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D09793B0FFC for ; Mon, 3 Oct 2005 14:34:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08382-01 for ; Mon, 3 Oct 2005 14:34:27 -0400 (EDT) Received: from fmsfmr005.fm.intel.com (fmr15.intel.com [192.55.52.69]) by menubar.gnome.org (Postfix) with ESMTP id E01D53B0F24 for ; Mon, 3 Oct 2005 14:34:17 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr005.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j93IYFs0002039; Mon, 3 Oct 2005 18:34:15 GMT Received: from fmsmsxvs042.fm.intel.com (fmsmsxvs042.fm.intel.com [132.233.42.128]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j93IYDKo017272; Mon, 3 Oct 2005 18:34:13 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs042.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005100311341312292 ; Mon, 03 Oct 2005 11:34:13 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 3 Oct 2005 11:34:09 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] libxml questions Date: Mon, 3 Oct 2005 11:34:08 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F9609105C68@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] libxml questions Thread-Index: AcXDsUTER4mnPgB5Tl+hBsYjD27mMgElbsPg From: "Jain, Nilesh" To: X-OriginalArrivalTime: 03 Oct 2005 18:34:09.0544 (UTC) FILETIME=[0B2AA880:01C5C849] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Oct 2005 18:34:34 -0000 >-----Original Message----- >From: Daniel Veillard [mailto:veillard@redhat.com] > >On Tue, Sep 27, 2005 at 02:34:48PM -0700, Jain, Nilesh wrote: >> No, I got it.. its working.. but the oldest tarball I see there is >> 2.6.20 so having problem running against the libxml2 which is currently >> shipped with the distro, most of them are still on 2.6.17... and no test >> tarball available for that.. Are these test forward compatible I mean >> can I run 2.6.17 test against 2.6.22 libxml2? > > it probably won't work: > - because the API extended > - because testing schemas regression tests on older releases won't > work either. Can you help me understand why schemas regression tests won't work on older release. Is it because of schema change.. or something else. From K.Buchcik@4commerce.de Tue Oct 4 05:46:18 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8F3463B0EB0 for ; Tue, 4 Oct 2005 05:46:18 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00335-08 for ; Tue, 4 Oct 2005 05:46:17 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 681DB3B07D0 for ; Tue, 4 Oct 2005 05:46:16 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EMjNJ-0000zM-0L; Tue, 04 Oct 2005 11:46:17 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EMjNI-0000zH-G0; Tue, 04 Oct 2005 11:46:16 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 04 Oct 2005 11:46:05 +0200 From: Kasimier Buchcik To: samueldg@arcoscom.com In-Reply-To: <43422945.7090502@arcoscom.com> References: <433C182B.3050606@arcoscom.com> <1128074576.1272.39.camel@librax> <43422945.7090502@arcoscom.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: Tue, 04 Oct 2005 11:46:04 +0200 Message-Id: <1128419164.1273.70.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] Validation problems with an XML without default namespace X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: "xml@gnome.org" X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 09:46:18 -0000 Hi, On Tue, 2005-10-04 at 09:03 +0200, Samuel D=EDaz Garc=EDa wrote: > Thanks for the response to all. >=20 > I solvented the problem using the "recursive function" I exposed (copied=20 > from an old e-mail in the list) and it works fine. OK :-) > But I don't stand why the default namespace in an element, is not=20 > assumed for the childs and so on. Don't allow us the standard to put=20 > only the namespace in a node? The reason why this is not apparent to you might be the fact, that we are used to look at XML documents, where ns-decl. attributes clearly seem to be the only source for nodes being in some namespace. So it we _edit_ a namespace declaration then this seems to change the namespaces of subsequent nodes. But this is the document representation only - at the API level this looks differently. E.g. using the DOM API the namespace declaration attributes are _not_ relevant for the namespaceURI property of an element or attribute node. Changes to the namespaceURI need to be performed separately for every node. This becomes apparent when one creates some elements in some namespace (note that we don't add any ns-declarations) and serializes the DOM tree into an XML document; if one didn't normalize the document beforehand, which would automatically add missing namespace declaration attributes, then the elements in the XML document end up being in no namespace. So one quickly realizes that ns-decl. attributes were invented to bind nodes to a namespace at the XML document level; at the API level every node has its own namespaceURI. However, currently ns-decl. attributes _are_ needed while working on a DOM tree; this is due to QNames: if an attribute holds a QName value, then we need to _manually_ assure that a ns-decl. attribute is in scope for it, otherwise we would loose the namespace of the QName when the tree is serialized to XML. Hopefully in the future, with the advent of data type annotations, one will be freed from this burden; if the processor _understands_ that a specific value is a QName and not just some characters, it will _know_ its namespace and will be able to automatically add ns-decl. attributes when the document is normalized. With Libxml2 this looks a bit different; Libxml2 depends on ns-decl. attributes being existent in its DOM-like tree, because they represent the sharepoint of a node's namespace information. By the way, have you already considered to use XSLT to fix your XML documents? Regards, Kasimier From davidnebauer@switch.com.au Tue Oct 4 11:20:31 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E9B913B2266 for ; Tue, 4 Oct 2005 11:20:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31153-04 for ; Tue, 4 Oct 2005 11:20:29 -0400 (EDT) Received: from mail.switch.com.au (mail.swtch.com.au [203.220.25.70]) by menubar.gnome.org (Postfix) with ESMTP id 3CBDF3B2318 for ; Tue, 4 Oct 2005 11:20:28 -0400 (EDT) Received: from [192.168.1.8] (dsl-112.160.240.220.lns02-waym-adl.dsl.comindico.com.au [220.240.160.112]) by mail.switch.com.au (8.12.8/8.12.8) with ESMTP id j94FFFKa028487 for ; Wed, 5 Oct 2005 00:45:16 +0930 Message-ID: <43429DB7.70007@switch.com.au> Date: Wed, 05 Oct 2005 00:50:23 +0930 From: David Nebauer User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-switch-com-au-MailScanner-Information: Please contact the ISP for more information X-switch-com-au-MailScanner: Found to be clean X-MailScanner-From: davidnebauer@switch.com.au X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.8 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -4.8 X-Spam-Level: Subject: [xml] xmlcatalog: fails to resolve docbookx.dtd on Debian/testing X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: david@nebauer.org List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Oct 2005 15:20:31 -0000 I've just discovered that the url http://oasis-open.org/docbook/xml/4.2/docbookx.dtd fails to resolve on my (stock) Debian/testing system: ------------------------------------------------------------------------------------------------- $ xmlcatalog /etc/xml/catalog http://oasis-open.org/docbook/xml/4.2/docbookx.dtd No entry for SYSTEM http://oasis-open.org/docbook/xml/4.2/docbookx.dtd No entry for URI http://oasis-open.org/docbook/xml/4.2/docbookx.dtd ------------------------------------------------------------------------------------------------- This is somewhat strange as I can manually trace through the catalog files: /etc/xml/catalog (line 49): . . /etc/xml/docbook-xml.xml (line 44): . . /usr/share/xml/docbook/schema/dtd/4.2/catalog.xml (lines 30-31): I should point out that docbookx.dtd (and related files) are actually installed where they are supposed to be. The public ID resolves correctly: ------------------------------------------------------------------------------------------------- $ xmlcatalog /etc/xml/catalog "-//OASIS//DTD DocBook XML V4.2//EN" file:///usr/share/xml/docbook/schema/dtd/4.2/docbookx.dtd ------------------------------------------------------------------------------------------------- Is this known behaviour? Regards, David. catalog= catalog= From davidnebauer@switch.com.au Wed Oct 5 09:12:28 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 196C13B3319 for ; Wed, 5 Oct 2005 09:12:28 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17970-10 for ; Wed, 5 Oct 2005 09:12:25 -0400 (EDT) Received: from mail.switch.com.au (mail.swtch.com.au [203.220.25.70]) by menubar.gnome.org (Postfix) with ESMTP id DE49D3B331D for ; Wed, 5 Oct 2005 09:12:23 -0400 (EDT) Received: from [192.168.1.8] (dsl-112.160.240.220.lns02-waym-adl.dsl.comindico.com.au [220.240.160.112]) by mail.switch.com.au (8.12.8/8.12.8) with ESMTP id j95D70Ka007792 for ; Wed, 5 Oct 2005 22:37:06 +0930 Message-ID: <4343D12D.8060605@switch.com.au> Date: Wed, 05 Oct 2005 22:42:13 +0930 From: David Nebauer User-Agent: Debian Thunderbird 1.0.2 (X11/20050602) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: xml@gnome.org Subject: Re: [xml] xmlcatalog: fails to resolve docbookx.dtd on Debian/testing (SOLVED) References: <43429DB7.70007@switch.com.au> In-Reply-To: <43429DB7.70007@switch.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-switch-com-au-MailScanner-Information: Please contact the ISP for more information X-switch-com-au-MailScanner: Found to be clean X-MailScanner-From: davidnebauer@switch.com.au X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.8 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -4.8 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: david@nebauer.org List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 13:12:28 -0000 David Nebauer wrote: > I've just discovered that the url > http://oasis-open.org/docbook/xml/4.2/docbookx.dtd fails to resolve on > my (stock) Debian/testing system That url should have read 'http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd' (add 'www.'). Thanks go to Michael Smith for picking that up. Regards, David. From lists@beanalby.net Wed Oct 5 14:03:44 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4D4E13B2750 for ; Wed, 5 Oct 2005 14:03:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07354-08 for ; Wed, 5 Oct 2005 14:03:42 -0400 (EDT) Received: from thunderstone.com (thunder.thunderstone.com [206.183.1.81]) by menubar.gnome.org (Postfix) with ESMTP id BE9093B1B0D for ; Wed, 5 Oct 2005 14:03:40 -0400 (EDT) Received: from [192.168.1.7] (helo=[192.168.1.7]) by thunderstone.com with esmtp (Exim 2.10 #1) id 1ENDcC-0006PH-00 for xml@gnome.org; Wed, 5 Oct 2005 14:03:40 -0400 Message-ID: <4344157B.6080400@beanalby.net> Date: Wed, 05 Oct 2005 14:03:39 -0400 From: Jason Viers User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Subject: [xml] snprintf problems compiling on DEC Alpha OSF4 & Solaris sparc 5.5.1 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 18:03:44 -0000 I'm trying to compile libxml2 on a couple different problems, and have hit into a snag. On "make", I get the following: ---------------- gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o .libs/testapi testapi.o ./.libs/libxml2.so -ldl -lpthread -lm -lsocket -lnsl -Wl,--rpath -Wl,/usr/local/lib testapi.o: In function `get_api_attr': /usr2/build/libxml2-2.6.20/testapi.c:108: undefined reference to `snprintf' collect2: ld returned 1 exit status make[2]: *** [testapi] Error 1 -------------- There's also a complaint about "undeclared identifier 'snpritnf' a ways above it. I know that DEC Alpha has the snprintf/trio issue, and ./configure properly detects that snprintf isn't there. I'm not sure why testapi isn't using the trio function. I poked around a little but couldn't make too much heads or tails of things. Anyone have an idea? Jason From alexk@google.com Wed Oct 5 17:57:31 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 200AE3B34E7 for ; Wed, 5 Oct 2005 17:57:31 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21916-01 for ; Wed, 5 Oct 2005 17:57:29 -0400 (EDT) Received: from 216-239-45-4.google.com (216-239-45-4.google.com [216.239.45.4]) by menubar.gnome.org (Postfix) with ESMTP id BB5273B34FF for ; Wed, 5 Oct 2005 17:57:28 -0400 (EDT) Received: from smtp-out2.google.com (zzb8.corp.google.com [172.25.12.88]) by death.corp.google.com with ESMTP id j95LqSuA003974 for ; Wed, 5 Oct 2005 14:57:25 -0700 Received: by smtp-out2.google.com with SMTP id 8so68817zzb for ; Wed, 05 Oct 2005 14:57:24 -0700 (PDT) Received: by 172.25.12.175 with SMTP id 15mr222731zzc; Wed, 05 Oct 2005 14:57:24 -0700 (PDT) Received: by 172.25.12.98 with HTTP; Wed, 5 Oct 2005 14:57:24 -0700 (PDT) Message-ID: <5f9c505f0510051457u3c9175a2k6f144ab205b5b235@mail.google.com> Date: Wed, 5 Oct 2005 17:57:24 -0400 From: Alex Khesin To: xml@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-9.2 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_BSP_TRUSTED] X-Spam-Score: -9.2 X-Spam-Level: Subject: [xml] bug in xmlTextWriterWriteCDATA X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 21:57:31 -0000 Please let me know if this mailing list is not the right mechanism for submitting patches. The current version of xmlwriter.c fails to emit CDATA section when there are characters between parent XML element and the CDATA section itself, as in: The patch below fixes it: *** xmlwriter.c.orig=092005-10-05 17:35:10.000000000 -0400 --- xmlwriter.c=092005-10-04 17:03:18.000000000 -0400 *************** *** 2536,2610 **** * Returns the bytes written (may be 0 because of buffering) or -1 in case of error */ int xmlTextWriterStartCDATA(xmlTextWriterPtr writer) { int count; int sum; xmlLinkPtr lk; xmlTextWriterStackEntry *p; if (writer =3D=3D NULL) return -1; sum =3D 0; lk =3D xmlListFront(writer->nodes); if (lk !=3D 0) { p =3D (xmlTextWriterStackEntry *) xmlLinkGetData(lk); if (p !=3D 0) { switch (p->state) { case XML_TEXTWRITER_NONE: case XML_TEXTWRITER_PI: case XML_TEXTWRITER_PI_TEXT: break; case XML_TEXTWRITER_ATTRIBUTE: count =3D xmlTextWriterEndAttribute(writer); if (count < 0) return -1; sum +=3D count; /* fallthrough */ case XML_TEXTWRITER_NAME: count =3D xmlOutputBufferWriteString(writer->out, ">"= ); if (count < 0) return -1; sum +=3D count; p->state =3D XML_TEXTWRITER_TEXT; break; case XML_TEXTWRITER_CDATA: xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, "xmlTextWriterStartCDATA : CDATA not allowed in this context!\n"); return -1; default: return -1; } } } p =3D (xmlTextWriterStackEntry *) xmlMalloc(sizeof(xmlTextWriterStackEntry)); if (p =3D=3D 0) { xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, "xmlTextWriterStartCDATA : out of memory!\n"); return -1; } p->name =3D NULL; p->state =3D XML_TEXTWRITER_CDATA; xmlListPushFront(writer->nodes, p); count =3D xmlOutputBufferWriteString(writer->out, "nodes); if (lk !=3D 0) { p =3D (xmlTextWriterStackEntry *) xmlLinkGetData(lk); if (p !=3D 0) { switch (p->state) { case XML_TEXTWRITER_NONE: + case XML_TEXTWRITER_TEXT: case XML_TEXTWRITER_PI: case XML_TEXTWRITER_PI_TEXT: break; case XML_TEXTWRITER_ATTRIBUTE: count =3D xmlTextWriterEndAttribute(writer); if (count < 0) return -1; sum +=3D count; /* fallthrough */ case XML_TEXTWRITER_NAME: count =3D xmlOutputBufferWriteString(writer->out, ">"= ); if (count < 0) return -1; sum +=3D count; p->state =3D XML_TEXTWRITER_TEXT; break; case XML_TEXTWRITER_CDATA: xmlWriterErrMsg(writer, XML_ERR_INTERNAL_ERROR, "xmlTextWriterStartCDATA : CDATA not allowed in this context!\n"); return -1; default: return -1; } } } p =3D (xmlTextWriterStackEntry *) xmlMalloc(sizeof(xmlTextWriterStackEntry)); if (p =3D=3D 0) { xmlWriterErrMsg(writer, XML_ERR_NO_MEMORY, "xmlTextWriterStartCDATA : out of memory!\n"); return -1; } p->name =3D NULL; p->state =3D XML_TEXTWRITER_CDATA; xmlListPushFront(writer->nodes, p); count =3D xmlOutputBufferWriteString(writer->out, " X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5DC893B3501 for ; Wed, 5 Oct 2005 18:06:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22255-07 for ; Wed, 5 Oct 2005 18:06:57 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id B47943B351E for ; Wed, 5 Oct 2005 18:06:56 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j95M6upp028229; Wed, 5 Oct 2005 18:06:56 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j95M6pV10304; Wed, 5 Oct 2005 18:06:51 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j95M6pLM022676; Wed, 5 Oct 2005 18:06:51 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j95M6oq7022674; Wed, 5 Oct 2005 18:06:50 -0400 Date: Wed, 5 Oct 2005 18:06:50 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] libxml questions Message-ID: <20051005220650.GC26865@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F9609105C68@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F9609105C68@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 22:06:59 -0000 On Mon, Oct 03, 2005 at 11:34:08AM -0700, Jain, Nilesh wrote: > > >-----Original Message----- > >From: Daniel Veillard [mailto:veillard@redhat.com] > > > >On Tue, Sep 27, 2005 at 02:34:48PM -0700, Jain, Nilesh wrote: > >> No, I got it.. its working.. but the oldest tarball I see there is > >> 2.6.20 so having problem running against the libxml2 which is > currently > >> shipped with the distro, most of them are still on 2.6.17... and no > test > >> tarball available for that.. Are these test forward compatible I > mean > >> can I run 2.6.17 test against 2.6.22 libxml2? > > > > it probably won't work: > > - because the API extended > > - because testing schemas regression tests on older releases won't > > work either. > > Can you help me understand why schemas regression tests won't work on > older release. Is it because of schema change.. or something else. Incredibly hard to implement fully. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Oct 5 18:14:24 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 223813B25BC for ; Wed, 5 Oct 2005 18:14:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22873-04 for ; Wed, 5 Oct 2005 18:14:21 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 71E9E3B31AF for ; Wed, 5 Oct 2005 18:14:21 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j95MEEqV030473; Wed, 5 Oct 2005 18:14:14 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j95MEEV11900; Wed, 5 Oct 2005 18:14:14 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j95MEEkc024930; Wed, 5 Oct 2005 18:14:14 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j95MEERk024928; Wed, 5 Oct 2005 18:14:14 -0400 Date: Wed, 5 Oct 2005 18:14:14 -0400 From: Daniel Veillard To: Eric Seidel Subject: Re: [xml] Adding pre-defined namespaces Message-ID: <20051005221414.GE26865@redhat.com> References: <22315C06-DFB7-41F6-B91A-95F080790A27@apple.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <22315C06-DFB7-41F6-B91A-95F080790A27@apple.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.592 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM, TW_XH] X-Spam-Score: -4.592 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 22:14:24 -0000 On Mon, Oct 03, 2005 at 12:45:33AM -0700, Eric Seidel wrote: > Are there any ways when using an xml SAX2 push parser, to push a > couple "predefined" namespaces on the namespace lookup stack before > beginning the parse? I don't think it is possible with public APIs, but the parser structures are open... > For example, some SVGs incorrectly use the xlink prefix w/o first > defining it. We would (unfortunately) like to support those SVGs. They are well formed XML-1.0 documents. But you will get namespace errors. I can't be sympathetic to supporting broken document, sorry... > Another example is when parsing document fragments for things such as > setInnerHTML in an xhtml context... There we need to build up a > "namespace stack" representing the current document context before > doing the actual parse. I don't understand, either it's XHTML in which case it is XML and an XML parser should work or it's not. Trying to parse XML island in non well-formed XML'like HTML opens the door to so many error case that loosing the namespace sounds just liek a small side effect. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Oct 5 18:15:32 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9CA9C3B3535 for ; Wed, 5 Oct 2005 18:15:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22873-10 for ; Wed, 5 Oct 2005 18:15:31 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 10C853B34EA for ; Wed, 5 Oct 2005 18:15:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j95MFUvg030864; Wed, 5 Oct 2005 18:15:30 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j95MFQV12249; Wed, 5 Oct 2005 18:15:30 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j95MFQxV025296; Wed, 5 Oct 2005 18:15:26 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j95MFOaN025291; Wed, 5 Oct 2005 18:15:24 -0400 Date: Wed, 5 Oct 2005 18:15:23 -0400 From: Daniel Veillard To: Jason Viers Subject: Re: [xml] snprintf problems compiling on DEC Alpha OSF4 & Solaris sparc 5.5.1 Message-ID: <20051005221523.GF26865@redhat.com> References: <4344157B.6080400@beanalby.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4344157B.6080400@beanalby.net> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 22:15:32 -0000 On Wed, Oct 05, 2005 at 02:03:39PM -0400, Jason Viers wrote: > I'm trying to compile libxml2 on a couple different problems, and have > hit into a snag. > > On "make", I get the following: > > ---------------- > gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type > -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts > -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align > -Wwrite-strings -Waggregate-return -Wstrict-prototypes > -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls -o > .libs/testapi testapi.o ./.libs/libxml2.so -ldl -lpthread -lm -lsocket > -lnsl -Wl,--rpath -Wl,/usr/local/lib > testapi.o: In function `get_api_attr': > /usr2/build/libxml2-2.6.20/testapi.c:108: undefined reference to `snprintf' > collect2: ld returned 1 exit status > make[2]: *** [testapi] Error 1 > -------------- > > There's also a complaint about "undeclared identifier 'snpritnf' a ways > above it. > > > I know that DEC Alpha has the snprintf/trio issue, and ./configure > properly detects that snprintf isn't there. I'm not sure why testapi > isn't using the trio function. Open a bugzilla this is mysterious.... Daniel > I poked around a little but couldn't make too much heads or tails of > things. Anyone have an idea? > > Jason > _______________________________________________ > xml mailing list, project page http://xmlsoft.org/ > xml@gnome.org > http://mail.gnome.org/mailman/listinfo/xml -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Oct 5 18:16:51 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 32CC43B34EB for ; Wed, 5 Oct 2005 18:16:51 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23106-05 for ; Wed, 5 Oct 2005 18:16:48 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 8137A3B34EA for ; Wed, 5 Oct 2005 18:16:48 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j95MGmAq031291; Wed, 5 Oct 2005 18:16:48 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j95MGlV12601; Wed, 5 Oct 2005 18:16:47 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j95MGlEs025576; Wed, 5 Oct 2005 18:16:47 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j95MGlmU025574; Wed, 5 Oct 2005 18:16:47 -0400 Date: Wed, 5 Oct 2005 18:16:47 -0400 From: Daniel Veillard To: Alex Khesin Subject: Re: [xml] bug in xmlTextWriterWriteCDATA Message-ID: <20051005221647.GG26865@redhat.com> References: <5f9c505f0510051457u3c9175a2k6f144ab205b5b235@mail.google.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5f9c505f0510051457u3c9175a2k6f144ab205b5b235@mail.google.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 22:16:51 -0000 On Wed, Oct 05, 2005 at 05:57:24PM -0400, Alex Khesin wrote: > Please let me know if this mailing list is not the right mechanism for > submitting patches. > > The current version of xmlwriter.c fails to emit CDATA section when > there are characters between parent XML element and the CDATA section > itself, as in: > > Providing a standalone C test showing the mistake helps, adding this to bugzilla also ensures it won't get lost, Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From eseidel@apple.com Wed Oct 5 18:41:30 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82A5C3B3560 for ; Wed, 5 Oct 2005 18:41:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24797-02 for ; Wed, 5 Oct 2005 18:41:29 -0400 (EDT) Received: from mail-out4.apple.com (mail-out4.apple.com [17.254.13.23]) by menubar.gnome.org (Postfix) with ESMTP id 9AAD83B3558 for ; Wed, 5 Oct 2005 18:41:28 -0400 (EDT) Received: from relay6.apple.com (a17-128-113-36.apple.com [17.128.113.36]) by mail-out4.apple.com (8.12.11/8.12.11) with ESMTP id j95MfQYp002131; Wed, 5 Oct 2005 15:41:26 -0700 (PDT) Received: from [17.219.211.87] (unknown [17.219.211.87]) by relay6.apple.com (Apple SCV relay) with ESMTP id 1A66B4AF; Wed, 5 Oct 2005 15:41:26 -0700 (PDT) In-Reply-To: <20051005221414.GE26865@redhat.com> References: <22315C06-DFB7-41F6-B91A-95F080790A27@apple.com> <20051005221414.GE26865@redhat.com> Mime-Version: 1.0 (Apple Message framework v746.1) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Eric Seidel Subject: Re: [xml] Adding pre-defined namespaces Date: Wed, 5 Oct 2005 15:41:22 -0700 To: veillard@redhat.com X-Mailer: Apple Mail (2.746.1) X-Brightmail-Tracker: AAAAAA== X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.592 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_BX, TW_IB, TW_PM, TW_XH] X-Spam-Score: -1.592 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Oct 2005 22:41:30 -0000 On Oct 5, 2005, at 3:14 PM, Daniel Veillard wrote: > On Mon, Oct 03, 2005 at 12:45:33AM -0700, Eric Seidel wrote: >> Another example is when parsing document fragments for things such as >> setInnerHTML in an xhtml context... There we need to build up a >> "namespace stack" representing the current document context before >> doing the actual parse. > > I don't understand, either it's XHTML in which case it is XML > and an XML parser should work or it's not. Trying to parse XML island > in non well-formed XML'like HTML opens the door to so many error case > that loosing the namespace sounds just liek a small side effect. As far as I understand, this is completely valid javascript + xhtml, which we'd like to support (and I do currently, through some of my own hacks):
NOTE: setting innerHTML in an xhtml context expects an xmlfragment, not an html one. Bad naming, I know. :) Unfortunately use of the libxml SAX2 parser for this "setInnerHTML" xml parsing barfs due to the fact that the xml fragment we're parsing does not contain all of the necessary namespace definitions. Yet, as far as I know, this the above code should be valid, since the xml fragment should be evaluated in the context of the document. Currently I support this Thoughts? -eric > Daniel > > -- > Daniel Veillard | Red Hat Desktop team http://redhat.com/ > veillard@redhat.com | libxml GNOME XML XSLT toolkit http:// > xmlsoft.org/ > http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From nilesh.jain@intel.com Wed Oct 5 22:15:41 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7E56D3B3647 for ; Wed, 5 Oct 2005 22:15:41 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03050-05 for ; Wed, 5 Oct 2005 22:15:35 -0400 (EDT) Received: from fmsfmr001.fm.intel.com (fmr13.intel.com [192.55.52.67]) by menubar.gnome.org (Postfix) with ESMTP id 628013B3622 for ; Wed, 5 Oct 2005 22:15:34 -0400 (EDT) Received: from fmsfmr101.fm.intel.com (fmsfmr101.fm.intel.com [10.253.24.21]) by fmsfmr001.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j962FYCl010179; Thu, 6 Oct 2005 02:15:34 GMT Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com [132.233.42.124]) by fmsfmr101.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j962FDSY024622; Thu, 6 Oct 2005 02:15:33 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005100519153328238 ; Wed, 05 Oct 2005 19:15:33 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Wed, 5 Oct 2005 19:15:33 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] libxml questions Date: Wed, 5 Oct 2005 19:15:32 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F960917AD84@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] libxml questions Thread-Index: AcXJ+RuVG2VbMhDTSwWQmrnsSpC0aAAIcqVg From: "Jain, Nilesh" To: X-OriginalArrivalTime: 06 Oct 2005 02:15:33.0591 (UTC) FILETIME=[D4F87E70:01C5CA1B] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.21 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 02:15:41 -0000 >-----Original Message----- >From: Daniel Veillard [mailto:veillard@redhat.com] >Sent: Wednesday, October 05, 2005 3:07 PM >To: Jain, Nilesh >Cc: xml@gnome.org >Subject: Re: [xml] libxml questions > >On Mon, Oct 03, 2005 at 11:34:08AM -0700, Jain, Nilesh wrote: >> >> >-----Original Message----- >> >From: Daniel Veillard [mailto:veillard@redhat.com] >> > >> >On Tue, Sep 27, 2005 at 02:34:48PM -0700, Jain, Nilesh wrote: >> >> No, I got it.. its working.. but the oldest tarball I see there is >> >> 2.6.20 so having problem running against the libxml2 which is >> currently >> >> shipped with the distro, most of them are still on 2.6.17... and no >> test >> >> tarball available for that.. Are these test forward compatible I >> mean >> >> can I run 2.6.17 test against 2.6.22 libxml2? >> > >> > it probably won't work: >> > - because the API extended >> > - because testing schemas regression tests on older releases won't >> > work either. >> >> Can you help me understand why schemas regression tests won't work on >> older release. Is it because of schema change.. or something else. > > Incredibly hard to implement fully. > Is there any design/architecture document on external/internal regression test cases.. I would like to understand the what functionality these test cases test? if it is something we should have for distro to confirm the ABI.. then want to understand the architecture/structure so that I will be able to integrate with LSB runtime test suite. Thanks, Nilesh=20 From sl1200mk2@free.fr Thu Oct 6 12:43:56 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A25C83B3C07 for ; Thu, 6 Oct 2005 12:43:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30353-07 for ; Thu, 6 Oct 2005 12:43:55 -0400 (EDT) Received: from smtp3.wanadoo.fr (smtp3.wanadoo.fr [193.252.22.28]) by menubar.gnome.org (Postfix) with ESMTP id EDC4F3B3C08 for ; Thu, 6 Oct 2005 12:43:54 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0309.wanadoo.fr (SMTP Server) with ESMTP id 070A91C007A7 for ; Thu, 6 Oct 2005 18:43:54 +0200 (CEST) Received: from [192.168.1.113] (ASt-Lambert-152-1-41-162.w82-124.abo.wanadoo.fr [82.124.167.162]) by mwinf0309.wanadoo.fr (SMTP Server) with ESMTP id 84A1B1C007FF for ; Thu, 6 Oct 2005 18:43:53 +0200 (CEST) X-ME-UUID: 20051006164353543.84A1B1C007FF@mwinf0309.wanadoo.fr Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <23b991cdd931a9b2be7a5555a7997582@free.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed To: xml@gnome.org From: nico Date: Thu, 6 Oct 2005 18:40:29 +0200 X-Mailer: Apple Mail (2.623) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.31 tagged_above=-999 required=2 tests=[BAYES_00, FROM_HAS_MIXED_NUMS, RCVD_IN_SORBS, TW_BX, TW_IB, TW_MX] X-Spam-Score: -4.31 X-Spam-Level: Subject: [xml] parsing error X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 16:43:57 -0000 hi i'm "novice" with libxml2 i always get this error when i try to parse an xml document. can someone explain me this? best regards nicolas Thread 0 Crashed: 0 libSystem.B.dylib 0x900029c8 szone_malloc + 0xd8 1 libSystem.B.dylib 0x90000c18 malloc_zone_malloc + 0x94 2 libSystem.B.dylib 0x90001a00 malloc + 0x44 3 libxml2.2.dylib 0x808344dc xmlNewCharEncodingHandler + 0xec 4 libxml2.2.dylib 0x8083464c xmlInitCharEncodingHandlers + 0xf0 5 libxml2.2.dylib 0x8084edac xmlInitParser + 0x68 6 D::Light 0x00002f64 extractfromxml + 0x20 From jpalomino@tcpsi.es Thu Oct 6 12:58:04 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 398D93B3C30 for ; Thu, 6 Oct 2005 12:58:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31293-06 for ; Thu, 6 Oct 2005 12:58:02 -0400 (EDT) Received: from tcpsi.com (unknown [62.93.168.242]) by menubar.gnome.org (Postfix) with ESMTP id 4F8CE3B3C08 for ; Thu, 6 Oct 2005 12:58:01 -0400 (EDT) Received: from elmo by tcpsi.com (Servidor de Correo TCP Sistemas e Ingenieria) with ASMTP id MUA38526; Thu, 06 Oct 2005 18:58:39 +0200 Message-ID: <009a01c5ca97$083990f0$141113ac@tcpsi.es> From: "Juan David Palomino" To: Date: Thu, 6 Oct 2005 18:57:27 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0097_01C5CAA7.CB89EBD0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.999 tagged_above=-999 required=2 tests=[BAYES_44, HTML_MESSAGE] X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Flag: YES Cc: Julio Rodriguez Garcia Subject: [xml] Encoding UTF-8 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 16:58:04 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0097_01C5CAA7.CB89EBD0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi to all, i have problems generating a file with encoding UTF-8. I don't know what to do to create the files with encoding UTF-8. Now i = create the xml files without any encoding. What function or method set the encoding? Please Help. Thanks. ************************************************************************************************************************************************ *La informaci=F3n contenida en este mensaje de correo electr=F3nico es confidencial y puede revestir el car=E1cter de reservada. * *Est=E1 dirigida exclusivamente a la persona destinataria. * *El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no est=E1n autorizados y pueden ser ilegales.* *Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo. * *The information in this e-mail is confidential and may be legally privileged. * *It is intended solely for the addressee. * *Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful. * *If you are not the intended recipient, please delete this e-mail. * ************************************************************************************************************************************************ ------=_NextPart_000_0097_01C5CAA7.CB89EBD0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi to all, i have problems generating a = file with=20 encoding UTF-8.
I don't know what to do to = create the files=20 with encoding UTF-8. Now i create the xml files without any=20 encoding.
 
What function or method set the=20 encoding?
 
Please Help.
Thanks.














************************************************************************************************************************************************
*La informaci=F3n contenida en este mensaje de correo electr=F3nico es confidencial y puede revestir el car=E1cter de reservada.   *
*Est=E1 dirigida exclusivamente a la persona destinataria.                                                                                                   *
*El acceso o cualquier uso por parte de cualquier otra persona de este mensaje no est=E1n autorizados y pueden ser ilegales.*
*Si no es Ud. la persona destinataria, le rogamos que proceda a borrarlo.                                                                          *
*The information in this e-mail is confidential and may be legally privileged.                                                                        *
*It is intended solely for the addressee.                                                                                                                           *
*Access or any use by any other person to this Internet e-mail is not authorised and may be unlawful.                                 *
*If you are not the intended recipient, please delete this e-mail.                                                                                         *
************************************************************************************************************************************************
 
------=_NextPart_000_0097_01C5CAA7.CB89EBD0-- From K.Buchcik@4commerce.de Thu Oct 6 13:33:13 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 14FF43B16DE for ; Thu, 6 Oct 2005 13:33:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01149-08 for ; Thu, 6 Oct 2005 13:33:10 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id D79DA3B16DC for ; Thu, 6 Oct 2005 13:33:09 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ENZcL-00069N-05; Thu, 06 Oct 2005 19:33:17 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ENZcJ-00069I-JI; Thu, 06 Oct 2005 19:33:16 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 06 Oct 2005 19:33:07 +0200 From: Kasimier Buchcik To: Juan David Palomino In-Reply-To: <009a01c5ca97$083990f0$141113ac@tcpsi.es> References: <009a01c5ca97$083990f0$141113ac@tcpsi.es> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Oct 2005 19:33:07 +0200 Message-Id: <1128619987.1272.36.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] Encoding UTF-8 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 17:33:13 -0000 Hi, On Thu, 2005-10-06 at 18:57 +0200, Juan David Palomino wrote: > Hi to all, i have problems generating a file with encoding UTF-8. > I don't know what to do to create the files with encoding UTF-8. Now i > create the xml files without any encoding. > > What function or method set the encoding? You could use xmlSaveFileEnc() [1] to save it with the desired encoding. An omitted "encoding" in the XML-declaration of your document means that the document is either encoded in UTF-8 or UTF-16. If serialized by Libxml2, this would be UTF-8, since this is Libxml2's internal encoding and thus the default encoding used for serialization. It might be that your document is already UTF-8 encoded, but the declaration simply does not mention this fact. [1] http://www.xmlsoft.org/html/libxml-tree.html#xmlSaveFile Regards, Kasimier From K.Buchcik@4commerce.de Thu Oct 6 13:53:54 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AEBF3B3B6F for ; Thu, 6 Oct 2005 13:53:54 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02447-05 for ; Thu, 6 Oct 2005 13:53:51 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 5654F3B0BBF for ; Thu, 6 Oct 2005 13:53:50 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ENZwL-0006Ba-LN; Thu, 06 Oct 2005 19:53:57 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ENZwK-0006BU-8e; Thu, 06 Oct 2005 19:53:57 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 06 Oct 2005 19:53:48 +0200 From: Kasimier Buchcik To: Juan David Palomino In-Reply-To: <00aa01c5ca9d$9f327ed0$141113ac@tcpsi.es> References: <009a01c5ca97$083990f0$141113ac@tcpsi.es> <1128619987.1272.36.camel@librax> <00aa01c5ca9d$9f327ed0$141113ac@tcpsi.es> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 06 Oct 2005 19:53:47 +0200 Message-Id: <1128621227.1272.37.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] Encoding UTF-8 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 17:53:54 -0000 Hi, On Thu, 2005-10-06 at 19:44 +0200, Juan David Palomino wrote: > OK. But what i must to do to save de xml into a string? > Can you tell me how to use xmlSaveFileTo? > I 'm not to be able to pass a xmlOutputBufferPtr to a string. Did you already looked at: http://www.xmlsoft.org/xmlio.html#Example2 Regards, Kasimier From veillard@redhat.com Fri Oct 7 23:33:58 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72ABE3B5281 for ; Fri, 7 Oct 2005 23:33:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30884-03 for ; Fri, 7 Oct 2005 23:33:55 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 707503B5283 for ; Fri, 7 Oct 2005 23:31:54 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j983Vi9j030378; Fri, 7 Oct 2005 23:31:44 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j983VcV03930; Fri, 7 Oct 2005 23:31:38 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j983Vc3X021934; Fri, 7 Oct 2005 23:31:38 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j983VcBt021932; Fri, 7 Oct 2005 23:31:38 -0400 Date: Fri, 7 Oct 2005 23:31:38 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] libxml questions Message-ID: <20051008033138.GB19390@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960917AD84@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F960917AD84@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 03:33:58 -0000 On Wed, Oct 05, 2005 at 07:15:32PM -0700, Jain, Nilesh wrote: > > > >-----Original Message----- > >From: Daniel Veillard [mailto:veillard@redhat.com] > >Sent: Wednesday, October 05, 2005 3:07 PM > >To: Jain, Nilesh > >Cc: xml@gnome.org > >Subject: Re: [xml] libxml questions > > > >On Mon, Oct 03, 2005 at 11:34:08AM -0700, Jain, Nilesh wrote: > >> > >> >-----Original Message----- > >> >From: Daniel Veillard [mailto:veillard@redhat.com] > >> > > >> >On Tue, Sep 27, 2005 at 02:34:48PM -0700, Jain, Nilesh wrote: > >> >> No, I got it.. its working.. but the oldest tarball I see there is > >> >> 2.6.20 so having problem running against the libxml2 which is > >> currently > >> >> shipped with the distro, most of them are still on 2.6.17... and > no > >> test > >> >> tarball available for that.. Are these test forward compatible I > >> mean > >> >> can I run 2.6.17 test against 2.6.22 libxml2? > >> > > >> > it probably won't work: > >> > - because the API extended > >> > - because testing schemas regression tests on older releases > won't > >> > work either. > >> > >> Can you help me understand why schemas regression tests won't work on > >> older release. Is it because of schema change.. or something else. > > > > Incredibly hard to implement fully. > > > > Is there any design/architecture document on external/internal > regression test cases.. I would like to understand the what > functionality these test cases test? if it is something we should have > for distro to confirm the ABI.. then want to understand the > architecture/structure so that I will be able to integrate with LSB > runtime test suite. The closest is the xmlschemas-dev@w3.org and public-xml-schema-testsuite@w3.org archives at W3C (especially Kasimier posts about it), I think there is a page at W3C too but I can't find it right now. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Fri Oct 7 23:38:47 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 064C53B1881 for ; Fri, 7 Oct 2005 23:38:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31463-01 for ; Fri, 7 Oct 2005 23:38:45 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5DABA3B5236 for ; Fri, 7 Oct 2005 23:36:18 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j983aCGX031325; Fri, 7 Oct 2005 23:36:12 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j983aCV04444; Fri, 7 Oct 2005 23:36:12 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j983aBJk022604; Fri, 7 Oct 2005 23:36:11 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j983aBAD022602; Fri, 7 Oct 2005 23:36:11 -0400 Date: Fri, 7 Oct 2005 23:36:11 -0400 From: Daniel Veillard To: Eric Seidel Subject: Re: [xml] Adding pre-defined namespaces Message-ID: <20051008033611.GC19390@redhat.com> References: <22315C06-DFB7-41F6-B91A-95F080790A27@apple.com> <20051005221414.GE26865@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.592 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_BX, TW_IB, TW_PM, TW_XH] X-Spam-Score: -1.592 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 08 Oct 2005 03:38:47 -0000 On Wed, Oct 05, 2005 at 03:41:22PM -0700, Eric Seidel wrote: > > On Oct 5, 2005, at 3:14 PM, Daniel Veillard wrote: > > >On Mon, Oct 03, 2005 at 12:45:33AM -0700, Eric Seidel wrote: > >>Another example is when parsing document fragments for things such as > >>setInnerHTML in an xhtml context... There we need to build up a > >>"namespace stack" representing the current document context before > >>doing the actual parse. > > > > I don't understand, either it's XHTML in which case it is XML > >and an XML parser should work or it's not. Trying to parse XML island > >in non well-formed XML'like HTML opens the door to so many error case > >that loosing the namespace sounds just liek a small side effect. > > As far as I understand, this is completely valid javascript + xhtml, > which we'd like to support (and I do currently, through some of my > own hacks): > > > > >
> > > > NOTE: setting innerHTML in an xhtml context expects an xmlfragment, > not an html one. Bad naming, I know. :) Okay, I understand better, one case of use of the namespace from the PCDATA and not from the markup itself... nasty :-) > Unfortunately use of the libxml SAX2 parser for this "setInnerHTML" > xml parsing barfs due to the fact that the xml fragment we're parsing It should complain but still produce a tree though. > does not contain all of the necessary namespace definitions. Yet, as > far as I know, this the above code should be valid, since the xml > fragment should be evaluated in the context of the document. > > Currently I support this > > Thoughts? This is a bit far stretched IMHO, but I understand, maybe I can add a small API to add in-scope namespace like that, I find that slightly disturbing though the parsing really should be context free ... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From sl1200mk2@free.fr Thu Oct 6 12:40:40 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4F7D63B3BE2 for ; Thu, 6 Oct 2005 12:40:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29978-09 for ; Thu, 6 Oct 2005 12:40:37 -0400 (EDT) Received: from smtp1.wanadoo.fr (smtp1.wanadoo.fr [193.252.22.30]) by menubar.gnome.org (Postfix) with ESMTP id 813413B3BC3 for ; Thu, 6 Oct 2005 12:40:37 -0400 (EDT) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf0102.wanadoo.fr (SMTP Server) with ESMTP id 6F7B81FF97BB for ; Thu, 6 Oct 2005 18:40:36 +0200 (CEST) Received: from [192.168.1.113] (ASt-Lambert-152-1-41-162.w82-124.abo.wanadoo.fr [82.124.167.162]) by mwinf0102.wanadoo.fr (SMTP Server) with ESMTP id 3DF831FF97E9 for ; Thu, 6 Oct 2005 18:40:36 +0200 (CEST) X-ME-UUID: 20051006164036254.3DF831FF97E9@mwinf0102.wanadoo.fr Mime-Version: 1.0 (Apple Message framework v623) Content-Transfer-Encoding: 7bit Message-Id: <296976c07a13a90870a902fd6a14d285@free.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed To: xml@gnome.org From: nico Date: Thu, 6 Oct 2005 18:37:11 +0200 X-Mailer: Apple Mail (2.623) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.31 tagged_above=-999 required=2 tests=[BAYES_00, FROM_HAS_MIXED_NUMS, RCVD_IN_SORBS, TW_BX, TW_IB, TW_MX] X-Spam-Score: -4.31 X-Spam-Level: X-Mailman-Approved-At: Sat, 08 Oct 2005 17:46:45 -0400 Subject: [xml] parsing error X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 16:40:40 -0000 hi i'm "novice" with libxml2 i always get this error when i try to parse an xml document. can someone explain me this? best regards nicolas Thread 0 Crashed: 0 libSystem.B.dylib 0x900029c8 szone_malloc + 0xd8 1 libSystem.B.dylib 0x90000c18 malloc_zone_malloc + 0x94 2 libSystem.B.dylib 0x90001a00 malloc + 0x44 3 libxml2.2.dylib 0x808344dc xmlNewCharEncodingHandler + 0xec 4 libxml2.2.dylib 0x8083464c xmlInitCharEncodingHandlers + 0xf0 5 libxml2.2.dylib 0x8084edac xmlInitParser + 0x68 6 D::Light 0x00002f64 extractfromxml + 0x20 From moissinac@enst.fr Sun Oct 9 12:24:34 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 561D63B2BA0 for ; Sun, 9 Oct 2005 12:24:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20737-08 for ; Sun, 9 Oct 2005 12:24:32 -0400 (EDT) Received: from smtp2.enst.fr (revol3.enst.fr [137.194.2.10]) by menubar.gnome.org (Postfix) with ESMTP id 3EF823B1CDB for ; Sun, 9 Oct 2005 11:19:01 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.enst.fr (Postfix) with ESMTP id 6D12A62D1 for ; Sun, 9 Oct 2005 17:19:00 +0200 (CEST) Received: from smtp2.enst.fr ([127.0.0.1]) by localhost (revol3.enst.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25214-05 for ; Sun, 9 Oct 2005 17:18:59 +0200 (CEST) Received: from infres.enst.fr (infres.enst.fr [137.194.192.1]) by smtp2.enst.fr (Postfix) with ESMTP id D228962C2 for ; Sun, 9 Oct 2005 17:18:59 +0200 (CEST) Received: from [137.194.3.81] (pptp3-81.enst.fr [137.194.3.81]) by infres.enst.fr (Postfix) with ESMTP id 73BBC13CBB for ; Sun, 9 Oct 2005 17:18:59 +0200 (MEST) Message-ID: <434934E8.8050203@enst.fr> Date: Sun, 09 Oct 2005 17:19:04 +0200 From: Jean-Claude Moissinac User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at enst.fr X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Subject: [xml] SAX and ENTITY X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 16:24:34 -0000 Hello I need to process ENTITY in XML files that I receive progressively. To process progressively these XML files, I'm using the chunk parsing mechanism with a SAX parser. But Idon't find how to process files with ENTITY lines like I have seen on http://xmlsoft.org/entities.html the paragraph: "WARNING: handling entities on top of the libxml2 SAX interface is difficult!!! If you plan to use non-predefined entities in your documents, then the learning curve to handle then using the SAX API may be long. If you plan to use complex documents, I strongly suggest you consider using the DOM interface instead and let libxml deal with the complexity rather than trying to do it yourself." But, I don't find more documentation. Is parsing the sources of libxml the only way to find "documentation" about how to handle entities? Is there a sample somewhere? Thank you in advance -- Jean-Claude Moissinac Department of Computer Science and Networks ENST Paris FRANCE E-mail: moissinac@enst.fr Tel: (+33) 1.45.81.80.88 Fax: (+33) 1.45.81.71.58 http://shadok.enst.fr/jcm From graham-libxml@simulcra.org Sun Oct 9 16:41:26 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D32A3B0706 for ; Sun, 9 Oct 2005 16:41:26 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08710-08 for ; Sun, 9 Oct 2005 16:41:23 -0400 (EDT) Received: from lamity.org (lamity.org [212.13.197.69]) by menubar.gnome.org (Postfix) with SMTP id 9A91F3B1237 for ; Sun, 9 Oct 2005 16:41:22 -0400 (EDT) Received: (qmail 5490 invoked by uid 1001); 9 Oct 2005 20:41:18 -0000 Date: Sun, 9 Oct 2005 21:41:18 +0100 From: Graham Bennett To: xml@gnome.org Message-ID: <20051009204118.GC18937@lamity.org> Mail-Followup-To: xml@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Subject: [xml] xmlSchemaSAXPlug and xsi:schemaLocation X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 20:41:26 -0000 Hi, I've been playing with xmlSchemaSAXPlug to do schema validation on my own stream of SAX events and it's proving to be very useful. However it seems that a schema is required to be provided up front in order to get an xmlSchemaValidCtxt. Is there any automatic way to handle the situation where the schema location is provided as an xsi:schemaLocation attribute in the SAX stream, or should I just handle it myself? I suppose I should be able to detect such an attribute, plug in the validating sax handler, then replay the events I have already seen, but this seems a bit messy. Thanks, Graham. -- Graham Bennett From graham-libxml@simulcra.org Sun Oct 9 17:01:09 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1D39C3B1BA8 for ; Sun, 9 Oct 2005 17:01:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09916-08 for ; Sun, 9 Oct 2005 17:01:06 -0400 (EDT) Received: from lamity.org (lamity.org [212.13.197.69]) by menubar.gnome.org (Postfix) with SMTP id C6CB83B1BF1 for ; Sun, 9 Oct 2005 17:01:04 -0400 (EDT) Received: (qmail 10931 invoked by uid 1001); 9 Oct 2005 21:01:00 -0000 Date: Sun, 9 Oct 2005 22:01:00 +0100 From: Graham Bennett To: xml@gnome.org Message-ID: <20051009210100.GD18937@lamity.org> Mail-Followup-To: xml@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_XN] X-Spam-Score: -4.669 X-Spam-Level: Subject: [xml] relaxng equivalent of xmlSchemaSAXPlug? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 09 Oct 2005 21:01:09 -0000 Hi, I was wondering if there was functionality in libxml2 equivalent to xmlSchemaSAXPlug that would do relaxng validation? cheers, Graham. -- Graham Bennett From nilesh.jain@intel.com Sun Oct 9 20:42:36 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDFFB3B087D for ; Sun, 9 Oct 2005 20:42:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 21280-03 for ; Sun, 9 Oct 2005 20:42:29 -0400 (EDT) Received: from fmsfmr006.fm.intel.com (fmr16.intel.com [192.55.52.70]) by menubar.gnome.org (Postfix) with ESMTP id EAE3F3B09CF for ; Sun, 9 Oct 2005 20:42:28 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr006.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9A0gSQR002285; Mon, 10 Oct 2005 00:42:28 GMT Received: from fmsmsxvs042.fm.intel.com (fmsmsxvs042.fm.intel.com [132.233.42.128]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9A0gGl9027540; Mon, 10 Oct 2005 00:42:28 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs042.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005100917422720728 ; Sun, 09 Oct 2005 17:42:27 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Sun, 9 Oct 2005 17:42:27 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Sun, 9 Oct 2005 17:42:26 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DTD question.. Thread-Index: AcXLuNWVko3uiiYSRCa0NncxIwfX6ABej2dQ From: "Jain, Nilesh" To: X-OriginalArrivalTime: 10 Oct 2005 00:42:27.0835 (UTC) FILETIME=[7D40C4B0:01C5CD33] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: xml@gnome.org Subject: [xml] DTD question.. X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 00:42:36 -0000 Is there any place where I can get the information about how does xml2 handles the DTDs. Does it or application has to take care of that. Is it follow any FHS recommendations, or provide any guidelines. Thanks, Nilesh =20 From veillard@redhat.com Sun Oct 9 23:18:20 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C11CF3B2125 for ; Sun, 9 Oct 2005 23:18:19 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28335-10 for ; Sun, 9 Oct 2005 23:18:18 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 900E33B119E for ; Sun, 9 Oct 2005 23:18:03 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9A3I2N0004027 for ; Sun, 9 Oct 2005 23:18:02 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9A3I2V17269 for ; Sun, 9 Oct 2005 23:18:02 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9A3I24g004356 for ; Sun, 9 Oct 2005 23:18:02 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9A3I2mo004354 for xml@gnome.org; Sun, 9 Oct 2005 23:18:02 -0400 Date: Sun, 9 Oct 2005 23:18:02 -0400 From: Daniel Veillard To: xml@gnome.org Subject: Re: [xml] relaxng equivalent of xmlSchemaSAXPlug? Message-ID: <20051010031802.GA3759@redhat.com> References: <20051009210100.GD18937@lamity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051009210100.GD18937@lamity.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.592 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM, TW_XN] X-Spam-Score: -4.592 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 03:18:20 -0000 On Sun, Oct 09, 2005 at 10:01:00PM +0100, Graham Bennett wrote: > Hi, > > I was wondering if there was functionality in libxml2 equivalent to > xmlSchemaSAXPlug that would do relaxng validation? Unfortunately due to the type of validator implemented for Relax-NG that's not possible. changing the type of validator would require some serious work. I considered doing the same for DTD validation, it should not be too hard with the current code but this is less useful. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Sun Oct 9 23:21:42 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 809CC3B216C for ; Sun, 9 Oct 2005 23:21:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28850-03 for ; Sun, 9 Oct 2005 23:21:41 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id CD5D93B2180 for ; Sun, 9 Oct 2005 23:20:40 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9A3KewX004658; Sun, 9 Oct 2005 23:20:40 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9A3KZV17593; Sun, 9 Oct 2005 23:20:35 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9A3KZm7004665; Sun, 9 Oct 2005 23:20:35 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9A3KZcq004663; Sun, 9 Oct 2005 23:20:35 -0400 Date: Sun, 9 Oct 2005 23:20:35 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] DTD question.. Message-ID: <20051010032035.GB3759@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 03:21:42 -0000 On Sun, Oct 09, 2005 at 05:42:26PM -0700, Jain, Nilesh wrote: > Is there any place where I can get the information about how does xml2 > handles the DTDs. Does it or application has to take care of that. Is it > follow any FHS recommendations, or provide any guidelines. by default libxml2 operates as a non validating parser, unless the flags are given as parser options. I don't see hos FHS would relate in any way, DTDs use public and system identifiers they are not file paths, and the XML Catalogs system from OASIS is implemented for their resolution. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From K.Buchcik@4commerce.de Mon Oct 10 04:30:16 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2EE7B3B2284 for ; Mon, 10 Oct 2005 04:30:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22564-03 for ; Mon, 10 Oct 2005 04:30:13 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 153A83B2387 for ; Mon, 10 Oct 2005 04:30:09 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EOt2r-0002dT-Pz; Mon, 10 Oct 2005 10:30:05 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EOt2r-0002dN-A8; Mon, 10 Oct 2005 10:30:05 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 10 Oct 2005 10:30:06 +0200 From: Kasimier Buchcik To: Graham Bennett In-Reply-To: <20051009204118.GC18937@lamity.org> References: <20051009204118.GC18937@lamity.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Oct 2005 10:30:06 +0200 Message-Id: <1128933006.1272.15.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 08:30:16 -0000 Hi, On Sun, 2005-10-09 at 21:41 +0100, Graham Bennett wrote: > Hi, > > I've been playing with xmlSchemaSAXPlug to do schema validation on my > own stream of SAX events and it's proving to be very useful. However it > seems that a schema is required to be provided up front in order to get > an xmlSchemaValidCtxt. > > Is there any automatic way to handle the situation where the schema > location is provided as an xsi:schemaLocation attribute in the SAX > stream, or should I just handle it myself? I suppose I should be able > to detect such an attribute, plug in the validating sax handler, then > replay the events I have already seen, but this seems a bit messy. Create the schema validation context with a NULL for the @schema argument if you want to switch on xsi-driven schema acquisition. Internally a new schema will be created during the validation and all the schemata, specified via xsi, will be constructed. However, this is a bit limited, since Libxml2's schema processors wants references to schema components to be resolved after each schema construction episode; thus it will work only on a subset of all the possible scenarios. E.g. if you have a schema at the document element, which references a component which would be acquired deeper in the tree (via a second xsi acquisition) then you would get a reference resolution error with Libxml2, while the spec allows such "late binding". Regards, Kasimier From gpn.libxml@gmail.com Mon Oct 10 08:44:30 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 973DA3B1AF5 for ; Mon, 10 Oct 2005 08:44:30 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09142-01 for ; Mon, 10 Oct 2005 08:44:28 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.192]) by menubar.gnome.org (Postfix) with ESMTP id E5DDB3B0C66 for ; Mon, 10 Oct 2005 08:44:27 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 40so125031nzk for ; Mon, 10 Oct 2005 05:44:27 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; b=nht3Qjttl83OVoO314bgpcSVHGy63HRCAYB41j68IFW1E4LWRMrXwUgpYz9j0LKdDoH0+vEgH3kKoayiVu5LuWgJsDJccf8rvtjM23uTzFK4jAQvtnbAIoBfTFOQGN93Wh5YiwMKjXA7RhPR06uhZum4pKaApxwGplgZZEzjJDU= Received: by 10.36.221.76 with SMTP id t76mr2848067nzg; Mon, 10 Oct 2005 05:44:27 -0700 (PDT) Received: from ?192.168.1.254? ( [59.144.1.143]) by mx.gmail.com with ESMTP id 6sm3602328nzn.2005.10.10.05.44.23; Mon, 10 Oct 2005 05:44:27 -0700 (PDT) Message-ID: <434A61E7.2050103@gmail.com> Date: Mon, 10 Oct 2005 18:13:19 +0530 From: GPN User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: veillard@redhat.com Subject: Re: [xml] Changes which might be required "Not converting names to lower-case in HTML parsing" References: <433AA0E8.1010208@gmail.com> <20050928150633.GK23250@redhat.com> <433B9D24.7040608@gmail.com> <20050929091153.GR23250@redhat.com> In-Reply-To: <20050929091153.GR23250@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 12:44:30 -0000 Daniel Veillard wrote: > On Thu, Sep 29, 2005 at 01:22:04PM +0530, GPN wrote: > >>Daniel Veillard wrote: >> >>>>I am assuming that pretty much all HTML related functionality >>>>is contained within HTMLparser.c, and the core xml functions >>>>need not change to accomodate this enhancement. >>> >>> >>> This enhancement will have to be conditional to a parsing option. >> >>Daniel, Can you expand on this? > > > Sure: > when you create an html parsing context like with htmlReadFile > you pass an options arguments which is a set of OR'ed htmlParserOption > There is already a few of them, another one would need to be added > to preserve case. > Then the places where you want to make the changes should be tested > against the ctxt->options for that new option. > This allows to plug your new behaviour without disturbing the default > one. > > Daniel > I use the following API's to create a context and subsequently parse the buffers - htmlCreatePushParserCtxt() htmlParseChunk() Based on your inputs above, I am assuming that you are referring to the options: - enum xmlParserOption defined in include/libxml/parser.h - enum htmlParserOption defined in include/libxml/HTMLparser.h htmlCtxtUseOptions() does the following - a) Normalize the HTML options to XML options Probably to reflect the options in the core parsing engine b) Sets some members of the context structure Probably for ease of condition checking. "HTML_PARSE_RETAINCASE" could be added as the additional option, but need not reflect as a core XML parsing option. Do we need to add a member in the context structure (something like retainCase)? Reply sent by you earlier - >> On Wed, Sep 28, 2005 at 07:25:52PM +0530, GPN wrote: >> >>>Hello, >>>I am working off release 2.6.22, and I am proposing the >>>following changes to the code. >>>- A new function xmlStrcaseEqual() might be required in >>> xmlstring.c, which can check if the current character >>> being parsed is between 'A' and 'Z', and if so compares >>> using casemap array as is done in xmlStrcasecmp(). >> >> >> not needed, just !xmlStrcasecmp() the API is too large already >> Do these checks have to be made conditional? For e.g. if (options & HTML_PARSE_RETAINCASE) { if (!xmlStrcasecmp()) { /* Code segment */ } } else { if (xmlStrEqual()) { /* Code segment */ } } instead of - if (xmlStrequal()) >>>- In htmlParseName(), the condition which checks if the >>> current character is upper-case, and which transforms >>> it needs to be removed. Name can be stored as it is. >> >> >> no. That would have to be conditionalized depending on a special >> parsing flag option. There is also a number of tables indexed by >> the lowercase name and that will need to be preserved >> I hope the inclusion of the new option satisifies this comment. But, I am concerned about which tables might need to be taken care of, so that the engine is not broken. >> >>>- In other parts of the code (only in HTMLparser.c), the >>> comparsions using xmlStrEqual() for names, need to be >>> replaced by xmlStrcaseEqual(). >> >> >> I.e. makes a lot of costly calls instead of one costly and a number >> of cheap ones, I disagree with this approach. >> I hope this is also answered above. xmlStrcaseEqual() will not be used. I did make these changes, and tested once. I found that some tags during the parse are missing out. For example and in particular, the "body" tag seems to be missed out. Probably, this is because I haven't taken care of the tables which you have mentioned above. Best Regards, GPN From veillard@redhat.com Mon Oct 10 10:30:58 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 312D23B2B50 for ; Mon, 10 Oct 2005 10:30:58 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18111-09 for ; Mon, 10 Oct 2005 10:30:56 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 6D0423B26FB for ; Mon, 10 Oct 2005 10:30:56 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9AEUsDq010354; Mon, 10 Oct 2005 10:30:54 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9AEUsV31770; Mon, 10 Oct 2005 10:30:54 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9AEUssc014393; Mon, 10 Oct 2005 10:30:54 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9AEUsUk014391; Mon, 10 Oct 2005 10:30:54 -0400 Date: Mon, 10 Oct 2005 10:30:54 -0400 From: Daniel Veillard To: GPN Subject: Re: [xml] Changes which might be required "Not converting names to lower-case in HTML parsing" Message-ID: <20051010143053.GA12059@redhat.com> References: <433AA0E8.1010208@gmail.com> <20050928150633.GK23250@redhat.com> <433B9D24.7040608@gmail.com> <20050929091153.GR23250@redhat.com> <434A61E7.2050103@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <434A61E7.2050103@gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 14:30:58 -0000 On Mon, Oct 10, 2005 at 06:13:19PM +0530, GPN wrote: > Based on your inputs above, I am assuming that you are referring to > the options: > - enum xmlParserOption defined in include/libxml/parser.h > - enum htmlParserOption defined in include/libxml/HTMLparser.h teh second one, yes > htmlCtxtUseOptions() does the following - > a) Normalize the HTML options to XML options > Probably to reflect the options in the core parsing engine > b) Sets some members of the context structure > Probably for ease of condition checking. > > "HTML_PARSE_RETAINCASE" could be added as the additional option, > but need not reflect as a core XML parsing option. > Do we need to add a member in the context structure (something > like retainCase)? no, the remaining options should be kept in ctxt->options > Do these checks have to be made conditional? For e.g. > if (options & HTML_PARSE_RETAINCASE) { > if (!xmlStrcasecmp()) { > /* Code segment */ > } > } else { > if (xmlStrEqual()) { > /* Code segment */ > } > } yes, if (ctxt->options & HTML_PARSE_RETAINCASE) ... the code segment should not be duplicated of course, the conditional should be unified. > >>>- In htmlParseName(), the condition which checks if the > >>> current character is upper-case, and which transforms > >>> it needs to be removed. Name can be stored as it is. > >> > >> > >> no. That would have to be conditionalized depending on a special > >>parsing flag option. There is also a number of tables indexed by > >>the lowercase name and that will need to be preserved > >> > I hope the inclusion of the new option satisifies this comment. > But, I am concerned about which tables might need to be taken care > of, so that the engine is not broken. you will have to also generate the lower case version of the name and use it for lookup in those tables. > >> > >>>- In other parts of the code (only in HTMLparser.c), the > >>> comparsions using xmlStrEqual() for names, need to be > >>> replaced by xmlStrcaseEqual(). > >> > >> > >> I.e. makes a lot of costly calls instead of one costly and a number > >>of cheap ones, I disagree with this approach. > >> > I hope this is also answered above. xmlStrcaseEqual() will not be > used. > > I did make these changes, and tested once. I found that some tags > during the parse are missing out. For example and in particular, > the "body" tag seems to be missed out. Probably, this is because > I haven't taken care of the tables which you have mentioned above. Well, I can't tell .. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From jenos@ncsa.uiuc.edu Mon Oct 10 20:00:52 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5846E3B1385 for ; Mon, 10 Oct 2005 20:00:52 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25255-05 for ; Mon, 10 Oct 2005 20:00:49 -0400 (EDT) Received: from mail.ncsa.uiuc.edu (mail.ncsa.uiuc.edu [141.142.2.28]) by menubar.gnome.org (Postfix) with ESMTP id 48D203B23AB for ; Mon, 10 Oct 2005 20:00:49 -0400 (EDT) X-Envelope-From: jenos@ncsa.uiuc.edu X-Envelope-To: Received: from yams.ncsa.uiuc.edu (yams.ncsa.uiuc.edu [141.142.234.2]) by mail.ncsa.uiuc.edu (8.11.7/8.11.7) with ESMTP id j9B00fL26367 for ; Mon, 10 Oct 2005 19:00:41 -0500 Received: from [141.142.232.41] (josie.ncsa.uiuc.edu [141.142.232.41]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by yams.ncsa.uiuc.edu (Postfix) with ESMTP id 325C51FC00 for ; Mon, 10 Oct 2005 18:51:40 -0500 (CDT) Message-ID: <434AFF8A.8090704@ncsa.uiuc.edu> Date: Mon, 10 Oct 2005 18:55:54 -0500 From: Jeremy Enos User-Agent: Mozilla Thunderbird 1.0.6 - [MOOX M3] (Windows/20050804) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Subject: Re: [xml] API documentation per version of libxml? References: <4339D3E4.3020702@ncsa.uiuc.edu> <20050928075821.GF23250@redhat.com> In-Reply-To: <20050928075821.GF23250@redhat.com> Content-Type: multipart/alternative; boundary="------------010505000700020304080707" X-NCSA-MailScanner-Information: Please contact the help@ncsa.uiuc.edu for more information X-NCSA-MailScanner: Found to be clean X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_BX, TW_IB] X-Spam-Score: -1.746 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 00:00:52 -0000 This is a multi-part message in MIME format. --------------010505000700020304080707 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Daniel Veillard wrote: >On Tue, Sep 27, 2005 at 06:21:08PM -0500, Jeremy Enos wrote: > > >>Hi- >>I used the documentation on xmlsoft.org to write the code I needed for a >>parser. On my test machine, I had libxml2 2.6.x installed. Now I'm >>running into requests to make it back-compatible with version 2.5.10. >>Functions like xmlReadMemory, and xmlReaderForFile don't exist in >>2.5.10. What are my alternative options? >> >> > > Hum, the reader may not exist on 2.5 (I can't remember). > > > So there's no such thing as an xmlTextReaderPtr in 2.5? :( That's making my re-write much larger scale than I thought. >>Is there a snapshot of the API documentation that I could look at which >>dates back to version 2.5.10, or any specific version, for that matter? >>It seems like that would be critically necessary in order to code for it. >> >> > > grab the 2.5.10 release tarball it should be in doc/ > > At least in 2.5.4, the documentation simply links straight to xmlsoft.org, so that's creating a roadblock there. thx- Jeremy --------------010505000700020304080707 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit

Daniel Veillard wrote:
On Tue, Sep 27, 2005 at 06:21:08PM -0500, Jeremy Enos wrote:
  
Hi-
I used the documentation on xmlsoft.org to write the code I needed for a 
parser.  On my test machine, I had libxml2 2.6.x installed.  Now I'm 
running into requests to make it back-compatible with version 2.5.10.  
Functions like xmlReadMemory, and xmlReaderForFile don't exist in 
2.5.10.  What are my alternative options? 
    

  Hum, the reader may not exist on 2.5 (I can't remember).

  
So there's no such thing as an xmlTextReaderPtr in 2.5?  :(  That's making my re-write much larger scale than I thought.

  
Is there a snapshot of the API documentation that I could look at which 
dates back to version 2.5.10, or any specific version, for that matter?  
It seems like that would be critically necessary in order to code for it.
    

  grab the 2.5.10 release tarball it should be in doc/
  
At least in 2.5.4, the documentation simply links straight to xmlsoft.org, so that's creating a roadblock there.
thx-

    Jeremy

--------------010505000700020304080707-- From nilesh.jain@intel.com Mon Oct 10 21:13:56 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 53D553B144E for ; Mon, 10 Oct 2005 21:13:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29159-06 for ; Mon, 10 Oct 2005 21:13:47 -0400 (EDT) Received: from fmsfmr002.fm.intel.com (fmr14.intel.com [192.55.52.68]) by menubar.gnome.org (Postfix) with ESMTP id 47F523B3163 for ; Mon, 10 Oct 2005 21:13:47 -0400 (EDT) Received: from fmsfmr101.fm.intel.com (fmsfmr101.fm.intel.com [10.253.24.21]) by fmsfmr002.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9B1Dkw7011632; Tue, 11 Oct 2005 01:13:46 GMT Received: from fmsmsxvs043.fm.intel.com (fmsmsxvs043.fm.intel.com [132.233.42.129]) by fmsfmr101.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9B1DYrI030853; Tue, 11 Oct 2005 01:13:46 GMT Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148]) by fmsmsxvs043.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101018134615610 ; Mon, 10 Oct 2005 18:13:46 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Oct 2005 18:13:46 -0700 Received: from 134.134.158.125 ([134.134.158.125]) by fmsmsx408.amr.corp.intel.com ([132.233.42.219]) via Exchange Front-End Server email.intel.com ([192.168.65.22]) with Microsoft Exchange Server HTTP-DAV ; Tue, 11 Oct 2005 01:13:46 +0000 Received: from nikka-dev.jf.intel.com.jf.intel.com by email.intel.com; 10 Oct 2005 18:19:57 -0700 Subject: Re: [xml] RE: XML modules and interface From: "Jain, Nilesh" To: veillard@redhat.com In-Reply-To: <20050930091122.GE23250@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F9609081CB8@fmsmsx408.amr.corp.intel.com> <20050930091122.GE23250@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Oct 2005 18:19:57 -0700 Message-Id: <1128993597.29725.7.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3-1.3.101mdk X-OriginalArrivalTime: 11 Oct 2005 01:13:46.0499 (UTC) FILETIME=[076FE530:01C5CE01] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.21 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 01:13:56 -0000 I have identified few other interfaces in some modules which I think should not be included in specs, I wanted to check with you before I do so. I have listed along with reasons. || Module || Interfaces || Reason || || HTMLparser || htmlNodeStatus|| Experimental || || tree || xmlDOMWrapAdoptNode, xmlDOMWrapReconcileNamespaces, xmlDOMWrapRemoveNode || Experimental || || Catalog || xmlCatalogGetSystem, xmlCatalogGetSystem || deprecated || || entities || xmlCleanupPredefinedEntities, xmlCreateEntitiesTable, xmlInitializePredefinedEntities || deprecated || || ParserInternals || xmlCheckLanguageID, xmlDecodeEntities, xmlParseQuotedString, xmlParserHandleReference, xmlScanName || deprecated || || valid || xmlCopyElementContent, xmlFreeElementContent,xmlNewElementContent, xmlSprintfElementContent || deprecated || || relxang || xmlRelaxNGParse || Unstable || || xmlSchema || xmlSchemaParse || Unstable || I have identified this by browsing the API document, I wanted to know is there a central place or list which you maintain for deprecated/not used symbols. Thanks, Nilesh From nilesh.jain@intel.com Mon Oct 10 21:18:14 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7EDAD3B2E5F for ; Mon, 10 Oct 2005 21:18:14 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29589-02 for ; Mon, 10 Oct 2005 21:18:12 -0400 (EDT) Received: from fmsfmr001.fm.intel.com (fmr13.intel.com [192.55.52.67]) by menubar.gnome.org (Postfix) with ESMTP id AB3903B29ED for ; Mon, 10 Oct 2005 21:18:12 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr001.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9B1ICoR010305; Tue, 11 Oct 2005 01:18:12 GMT Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com [132.233.42.124]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9B1I6d7015422; Tue, 11 Oct 2005 01:18:12 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101018181129435 ; Mon, 10 Oct 2005 18:18:11 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Oct 2005 18:18:11 -0700 Received: from 134.134.158.125 ([134.134.158.125]) by fmsmsx408.amr.corp.intel.com ([132.233.42.219]) via Exchange Front-End Server email.intel.com ([192.168.65.22]) with Microsoft Exchange Server HTTP-DAV ; Tue, 11 Oct 2005 01:18:11 +0000 Received: from nikka-dev.jf.intel.com.jf.intel.com by email.intel.com; 10 Oct 2005 18:24:22 -0700 Subject: Re: [xml] libxml questions From: "Jain, Nilesh" To: veillard@redhat.com In-Reply-To: <20051008033138.GB19390@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960917AD84@fmsmsx408.amr.corp.intel.com> <20051008033138.GB19390@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Oct 2005 18:24:22 -0700 Message-Id: <1128993862.29725.12.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3-1.3.101mdk X-OriginalArrivalTime: 11 Oct 2005 01:18:11.0768 (UTC) FILETIME=[A58CBB80:01C5CE01] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 01:18:14 -0000 On Fri, 2005-10-07 at 23:31 -0400, Daniel Veillard wrote: > > The closest is the xmlschemas-dev@w3.org and > public-xml-schema-testsuite@w3.org archives at W3C (especially Kasimier > posts about it), I think there is a page at W3C too but I can't find it right > now. Thanks Daniel. From nilesh.jain@intel.com Tue Oct 11 01:38:06 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 071DD3B0866 for ; Tue, 11 Oct 2005 01:38:06 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11245-02 for ; Tue, 11 Oct 2005 01:37:59 -0400 (EDT) Received: from fmsfmr006.fm.intel.com (fmr16.intel.com [192.55.52.70]) by menubar.gnome.org (Postfix) with ESMTP id 460A73B0676 for ; Tue, 11 Oct 2005 01:37:59 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr006.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9B5bwTD013168; Tue, 11 Oct 2005 05:37:58 GMT Received: from fmsmsxvs043.fm.intel.com (fmsmsxvs043.fm.intel.com [132.233.42.129]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9B5bJGH026500; Tue, 11 Oct 2005 05:37:58 GMT Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148]) by fmsmsxvs043.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101022375812275 ; Mon, 10 Oct 2005 22:37:58 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Oct 2005 22:37:58 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] libxml questions Date: Mon, 10 Oct 2005 22:37:57 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F960923B3AB@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] libxml questions Thread-Index: AcXLuNWVko3uiiYSRCa0NncxIwfX6ACbQRDA From: "Jain, Nilesh" To: X-OriginalArrivalTime: 11 Oct 2005 05:37:58.0553 (UTC) FILETIME=[EFFF6090:01C5CE25] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 05:38:06 -0000 > > The closest is the xmlschemas-dev@w3.org and >public-xml-schema-testsuite@w3.org archives at W3C (especially Kasimier >posts about it), I think there is a page at W3C too but I can't find it >right >now. Are you taking about http://www.w3.org/XML/Schema#dev=20 From nilesh.jain@intel.com Tue Oct 11 02:02:08 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E9B773B0A9E for ; Tue, 11 Oct 2005 02:02:07 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12561-03 for ; Tue, 11 Oct 2005 02:02:01 -0400 (EDT) Received: from fmsfmr001.fm.intel.com (fmr13.intel.com [192.55.52.67]) by menubar.gnome.org (Postfix) with ESMTP id 28DEC3B32DD for ; Tue, 11 Oct 2005 02:01:48 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr001.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9B61lub024643; Tue, 11 Oct 2005 06:01:47 GMT Received: from fmsmsxvs043.fm.intel.com (fmsmsxvs043.fm.intel.com [132.233.42.129]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9B61lFh010947; Tue, 11 Oct 2005 06:01:47 GMT Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148]) by fmsmsxvs043.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101023014715271 ; Mon, 10 Oct 2005 23:01:47 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Mon, 10 Oct 2005 23:01:47 -0700 Received: from 134.134.158.125 ([134.134.158.125]) by fmsmsx408.amr.corp.intel.com ([132.233.42.219]) via Exchange Front-End Server email.intel.com ([192.168.65.22]) with Microsoft Exchange Server HTTP-DAV ; Tue, 11 Oct 2005 06:01:46 +0000 Received: from nikka-dev.jf.intel.com.jf.intel.com by email.intel.com; 10 Oct 2005 23:07:59 -0700 From: "Jain, Nilesh" To: veillard@redhat.com In-Reply-To: <20051010032035.GB3759@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> <20051010032035.GB3759@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Mon, 10 Oct 2005 23:07:58 -0700 Message-Id: <1129010878.15119.7.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3-1.3.101mdk X-OriginalArrivalTime: 11 Oct 2005 06:01:47.0398 (UTC) FILETIME=[43A7D260:01C5CE29] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org Subject: [xml] XML regression test cases... X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 06:02:08 -0000 When I run external regression test (./testsuite) I see some errors, is it common errors or something is not setup correctly on my m/c. ## XML Schemas datatypes test suite from James Clark Ran 1035 tests, 11 errors, 0 leaks ## Relax NG test suite from James Clark Ran 253 tests, no errors ## Relax NG test suite for libxml2 Ran 183 tests, no errors ## NIST test suite for Schemas version NIST2004-01-14 Ran 23170 tests (3953 schemata), no errors ## Sun test suite for Schemas version Sun2002-01-16 Ran 193 tests (40 schemata), 27 errors (0 internals), 0 leaks ## Microsoft test suite for Schemas version MS2002-01-16 Ran 7230 tests (4686 schemata), 546 errors (1 internals), 0 leaks Total 32064 tests, 584 errors, 0 leaks Another question related to internal regression test suite (runtest), Are they used to confirm the behavior of public interface or What part of library do they validate? Do you think they are important to be part of LSB runtime test suite which is used to confirm distribution against the specification. Thanks, Nilesh From K.Buchcik@4commerce.de Tue Oct 11 05:40:59 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 579633B22A4 for ; Tue, 11 Oct 2005 05:40:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29303-02 for ; Tue, 11 Oct 2005 05:40:57 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id EC17E3B216E for ; Tue, 11 Oct 2005 05:40:56 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPGcu-0004Ev-Ue; Tue, 11 Oct 2005 11:40:52 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPGcu-0004Eq-Av; Tue, 11 Oct 2005 11:40:52 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 11 Oct 2005 11:40:54 +0200 From: Kasimier Buchcik To: "Jain, Nilesh" In-Reply-To: <1129010878.15119.7.camel@nikka-dev.jf.intel.com.jf.intel.com> References: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> <20051010032035.GB3759@redhat.com> <1129010878.15119.7.camel@nikka-dev.jf.intel.com.jf.intel.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Oct 2005 11:40:54 +0200 Message-Id: <1129023654.1272.16.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] XML regression test cases... X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 09:40:59 -0000 Hi, On Mon, 2005-10-10 at 23:07 -0700, Jain, Nilesh wrote: > When I run external regression test (./testsuite) I see some errors, is > it common errors or something is not setup correctly on my m/c. The errors are partly due to incorrect tests, which have not yet been fixed by the WC3 XML Schema test collection initiative, partly due to not yet supported features and partly to incorrect behaviour of Libxml2's schema processor. The implementation of the schema processor is still work in progress, so the results will still change quite often in the near future. > ## XML Schemas datatypes test suite from James Clark > Ran 1035 tests, 11 errors, 0 leaks This tests xmlschemastypes.c via relaxng.c (which uses a tiny bit of xmlschemas.c) --> so the XML Schema data type module The errors are expected, since XML Schema data types disagrees here with some of Clark's tests. > ## Relax NG test suite from James Clark > Ran 253 tests, no errors > ## Relax NG test suite for libxml2 > Ran 183 tests, no errors this tests relaxng.c (xmlschemastypes.c as well?) --> so the RelaxNG module > ## NIST test suite for Schemas version NIST2004-01-14 > Ran 23170 tests (3953 schemata), no errors this tests xmlschemas.c with a strong focus on xmlschemastypes.c and XML Schema facets --> so the XML Schema data type module > ## Sun test suite for Schemas version Sun2002-01-16 > Ran 193 tests (40 schemata), 27 errors (0 internals), 0 leaks > ## Microsoft test suite for Schemas version MS2002-01-16 > Ran 7230 tests (4686 schemata), 546 errors (1 internals), 0 leaks > Total 32064 tests, 584 errors, 0 leaks this tests xmlschemas.c and xmlschemastypes.c --> so the XML Schema structure and data type modules Here we get the errors I mentioned at the top. > Another question related to internal regression test suite (runtest), > Are they used to confirm the behavior of public interface or What part > of library do they validate? Do you think they are important to be part > of LSB runtime test suite which is used to confirm distribution against > the specification. Regards, Kasimier From K.Buchcik@4commerce.de Tue Oct 11 05:54:24 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7E0AC3B18AC for ; Tue, 11 Oct 2005 05:54:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29932-04 for ; Tue, 11 Oct 2005 05:54:22 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id B5A7E3B35B0 for ; Tue, 11 Oct 2005 05:54:19 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPGps-0004Go-7z for xml@gnome.org; Tue, 11 Oct 2005 11:54:16 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPGpr-0004Gi-1y for xml@gnome.org; Tue, 11 Oct 2005 11:54:15 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 11 Oct 2005 11:54:17 +0200 From: Kasimier Buchcik To: ML-libxml2 Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Oct 2005 11:54:17 +0200 Message-Id: <1129024457.1272.29.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Subject: [xml] Initial implementation of redefinitions for the schema processor X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 09:54:24 -0000 Hi, We committed an initial support for "redefinitions" into the schema processor. Unfortunately, in order to implement redefinitions, we had to restructure most of the code which handles attribute declarations and attribute group definitions; so new bugs might have sneaked in, although the regression tests and the W3C test suite do not show any new errors. Redefinitions are not well tested though, and we'll be happy about anyone who can provide test cases or is eager to find bugs. The W3C test suite has a few test, but I did not went through them yet, and since this is a wobbly part of the spec, those tests might be useless. There was an important fix regarding default/fixed attributes, thus you might want to use the latest CVS revisions if you encounter problems. Have fun with it. Regards, Kasimier From veillard@redhat.com Tue Oct 11 09:48:47 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0D3833B37EF for ; Tue, 11 Oct 2005 09:48:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16266-02 for ; Tue, 11 Oct 2005 09:48:44 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 1458E3B37EA for ; Tue, 11 Oct 2005 09:48:22 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BDmLQk008040; Tue, 11 Oct 2005 09:48:21 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BDmLV00886; Tue, 11 Oct 2005 09:48:21 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BDmLmC022858; Tue, 11 Oct 2005 09:48:21 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BDmLS9022856; Tue, 11 Oct 2005 09:48:21 -0400 Date: Tue, 11 Oct 2005 09:48:21 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] libxml questions Message-ID: <20051011134821.GA17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923B3AB@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F960923B3AB@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 13:48:47 -0000 On Mon, Oct 10, 2005 at 10:37:57PM -0700, Jain, Nilesh wrote: > > > > The closest is the xmlschemas-dev@w3.org and > >public-xml-schema-testsuite@w3.org archives at W3C (especially Kasimier > >posts about it), I think there is a page at W3C too but I can't find it > >right > >now. > > Are you taking about http://www.w3.org/XML/Schema#dev nearly: http://www.w3.org/XML/2004/xml-schema-test-suite/index.html Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 11 09:52:56 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2112B3B373B for ; Tue, 11 Oct 2005 09:52:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16575-08 for ; Tue, 11 Oct 2005 09:52:54 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 280BB3B2080 for ; Tue, 11 Oct 2005 09:52:54 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BDqkC1009717; Tue, 11 Oct 2005 09:52:46 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BDqbV02267; Tue, 11 Oct 2005 09:52:41 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BDqb6C024639; Tue, 11 Oct 2005 09:52:37 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BDqYbd024632; Tue, 11 Oct 2005 09:52:34 -0400 Date: Tue, 11 Oct 2005 09:52:34 -0400 From: Daniel Veillard To: Kasimier Buchcik Subject: Re: [xml] XML regression test cases... Message-ID: <20051011135234.GB17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> <20051010032035.GB3759@redhat.com> <1129010878.15119.7.camel@nikka-dev.jf.intel.com.jf.intel.com> <1129023654.1272.16.camel@librax> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129023654.1272.16.camel@librax> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 13:52:56 -0000 On Tue, Oct 11, 2005 at 11:40:54AM +0200, Kasimier Buchcik wrote: > > Another question related to internal regression test suite (runtest), > > Are they used to confirm the behavior of public interface or What part > > of library do they validate? Do you think they are important to be part > > of LSB runtime test suite which is used to confirm distribution against > > the specification. I think runtest might be a good fit for the runtime tests, but it requires quite a bit of data, and results may still deviate a bit over time (sometimes serialization changes), it at least ensure most of the main APIs are working correctly. testapi is rather an internal test, and testsuite is way too focused on specific schemas issues (plus it requires globs of data). Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From K.Buchcik@4commerce.de Tue Oct 11 10:07:16 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B215A3B381F for ; Tue, 11 Oct 2005 10:07:16 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17335-09 for ; Tue, 11 Oct 2005 10:07:13 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 5FC933B3812 for ; Tue, 11 Oct 2005 10:07:04 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPKkd-0004ir-Ms; Tue, 11 Oct 2005 16:05:07 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPKkd-0004il-9p; Tue, 11 Oct 2005 16:05:07 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 11 Oct 2005 16:05:10 +0200 From: Kasimier Buchcik To: Daniel Veillard In-Reply-To: <20051011135234.GB17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F96091F0B3E@fmsmsx408.amr.corp.intel.com> <20051010032035.GB3759@redhat.com> <1129010878.15119.7.camel@nikka-dev.jf.intel.com.jf.intel.com> <1129023654.1272.16.camel@librax> <20051011135234.GB17427@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Oct 2005 16:05:09 +0200 Message-Id: <1129039509.1272.42.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] XML regression test cases... X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 14:07:16 -0000 Hi, On Tue, 2005-10-11 at 09:52 -0400, Daniel Veillard wrote: > On Tue, Oct 11, 2005 at 11:40:54AM +0200, Kasimier Buchcik wrote: > > > Another question related to internal regression test suite (runtest), > > > Are they used to confirm the behavior of public interface or What part > > > of library do they validate? Do you think they are important to be part > > > of LSB runtime test suite which is used to confirm distribution against > > > the specification. > > I think runtest might be a good fit for the runtime tests, but it requires > quite a bit of data, and results may still deviate a bit over time (sometimes > serialization changes), it at least ensure most of the main APIs are working > correctly. > > testapi is rather an internal test, and testsuite is way too focused > on specific schemas issues (plus it requires globs of data). s/testsuite/runsuite Kasimier From veillard@redhat.com Tue Oct 11 11:10:27 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D07023B0AD4 for ; Tue, 11 Oct 2005 11:10:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22889-09 for ; Tue, 11 Oct 2005 11:10:26 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 774BD3B352D for ; Tue, 11 Oct 2005 11:10:00 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BFA0wd007642; Tue, 11 Oct 2005 11:10:00 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BF9xV28470; Tue, 11 Oct 2005 11:09:59 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BF9xDa020023; Tue, 11 Oct 2005 11:09:59 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BF9xID020020; Tue, 11 Oct 2005 11:09:59 -0400 Date: Tue, 11 Oct 2005 11:09:59 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] RE: XML modules and interface Message-ID: <20051011150959.GC17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F9609081CB8@fmsmsx408.amr.corp.intel.com> <20050930091122.GE23250@redhat.com> <1128993597.29725.7.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1128993597.29725.7.camel@nikka-dev.jf.intel.com.jf.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 15:10:28 -0000 On Mon, Oct 10, 2005 at 06:19:57PM -0700, Jain, Nilesh wrote: > I have identified few other interfaces in some modules which I think > should not be included in specs, I wanted to check with you before I do > so. I have listed along with reasons. > > || Module || Interfaces || Reason || > || HTMLparser || htmlNodeStatus|| Experimental || hum, was contributed, I don't really remember what it is used for :-) -> drop > || tree || xmlDOMWrapAdoptNode, xmlDOMWrapReconcileNamespaces, > xmlDOMWrapRemoveNode || Experimental || xmlDOMWrapAdoptNode and xmlDOMWrapRemoveNode may be used by PHP but it's not critical to keep them. -> drop, okay > || Catalog || xmlCatalogGetSystem, xmlCatalogGetSystem || deprecated || -> drop > || entities || xmlCleanupPredefinedEntities, xmlCreateEntitiesTable, > xmlInitializePredefinedEntities || deprecated || -> drop > || ParserInternals || xmlCheckLanguageID, xmlDecodeEntities, > xmlParseQuotedString, xmlParserHandleReference, xmlScanName || > deprecated || -> drop > || valid || xmlCopyElementContent, > xmlFreeElementContent,xmlNewElementContent, xmlSprintfElementContent || > deprecated || -> drop > || relxang || xmlRelaxNGParse || Unstable || Warning is old, API is in use now -> keep > || xmlSchema || xmlSchemaParse || Unstable || Warning is old, API is in use now -> keep > > I have identified this by browsing the API document, I wanted to know is > there a central place or list which you maintain for deprecated/not used > symbols. Not really, there is the legacy.c module with a bunch of them, but some function are really still exported because they were public at some point and I didn't want to introduce regression, and in other case because they are needed for multiple modules. It's history .... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From Pavan.Vedantam@fmcti.com Tue Oct 11 13:08:10 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 664C13B3A3F for ; Tue, 11 Oct 2005 13:08:10 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31830-05 for ; Tue, 11 Oct 2005 13:08:08 -0400 (EDT) Received: from plmler3.mail.eds.com (plmler3.mail.eds.com [199.228.142.73]) by menubar.gnome.org (Postfix) with ESMTP id A31523B3A6B for ; Tue, 11 Oct 2005 13:08:07 -0400 (EDT) Received: from plmlir2.mail.eds.com (plmlir2-2.mail.eds.com [199.228.142.132]) by plmler3.mail.eds.com (8.13.4/8.12.10) with ESMTP id j9BH86AP006624 for ; Tue, 11 Oct 2005 12:08:07 -0500 Received: from plmlir2.mail.eds.com (localhost [127.0.0.1]) by plmlir2.mail.eds.com (8.13.4/8.12.10) with ESMTP id j9BH79uX000322 for ; Tue, 11 Oct 2005 12:07:09 -0500 Received: from usplmfmc03.chicago.fmcweb.com ([128.254.113.13]) by plmlir2.mail.eds.com (8.13.4/8.12.10) with ESMTP id j9BH79k5000316 for ; Tue, 11 Oct 2005 12:07:09 -0500 Received: by usplmfmc03.chicago.fmcweb.com with Internet Mail Service (5.5.2657.72) id <4GDJK9P2>; Tue, 11 Oct 2005 12:07:12 -0500 Message-ID: From: "Vedantam, Pavan" To: xml@gnome.org Date: Tue, 11 Oct 2005 12:16:39 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C5CE87.5C992798" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_BX, TW_IB] X-Spam-Score: -1.746 X-Spam-Level: Subject: [xml] How to creata one big DOM from Multiple DOMS X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 17:08:10 -0000 This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C5CE87.5C992798 Content-Type: text/plain; charset="iso-8859-1" Hi, I am using Libxml2 to parse the xml documents and build DOMS, I would like to know if there is a provision for linking the DOMS so that all the DOMS are under one ROOT ?, i.e I should be able to traverse the DOMS through one starting point, just like a tree. regards, Pavan ------_=_NextPart_001_01C5CE87.5C992798 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable How to creata one big DOM from Multiple DOMS

Hi,
I am using Libxml2 to parse the xml = documents and build DOMS, I would like to know if there is a provision = for linking the DOMS so that all the DOMS are under one ROOT ?, i.e I = should be able to traverse the DOMS through one starting point, just = like a tree.

regards,
Pavan
=A0

------_=_NextPart_001_01C5CE87.5C992798-- From veillard@redhat.com Tue Oct 11 13:28:37 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9C1913B293A for ; Tue, 11 Oct 2005 13:28:37 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00839-10 for ; Tue, 11 Oct 2005 13:28:35 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id C0C173B3668 for ; Tue, 11 Oct 2005 13:28:32 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BHSQMD029850; Tue, 11 Oct 2005 13:28:26 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BHSLV13620; Tue, 11 Oct 2005 13:28:21 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BHSLgr007988; Tue, 11 Oct 2005 13:28:21 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BHSLDE007986; Tue, 11 Oct 2005 13:28:21 -0400 Date: Tue, 11 Oct 2005 13:28:21 -0400 From: Daniel Veillard To: "Vedantam, Pavan" Subject: Re: [xml] How to creata one big DOM from Multiple DOMS Message-ID: <20051011172821.GD17427@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 17:28:37 -0000 On Tue, Oct 11, 2005 at 12:16:39PM -0500, Vedantam, Pavan wrote: > > Hi, > I am using Libxml2 to parse the xml documents and build DOMS, I would like > to know if there is a provision for linking the DOMS so that all the DOMS > are under one ROOT ?, not really. > i.e I should be able to traverse the DOMS through one > starting point, just like a tree. you could move the element roots under the new top, but you should first either disable dictionaries at parsing time or make sure all document are parsed with the same dictionnary (which is best done by reusing the same parser context for all parses) Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From nilesh.jain@intel.com Tue Oct 11 14:55:36 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A12A43B3A83 for ; Tue, 11 Oct 2005 14:55:36 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06875-10 for ; Tue, 11 Oct 2005 14:55:29 -0400 (EDT) Received: from fmsfmr002.fm.intel.com (fmr14.intel.com [192.55.52.68]) by menubar.gnome.org (Postfix) with ESMTP id 7DD723B3A06 for ; Tue, 11 Oct 2005 14:55:00 -0400 (EDT) Received: from fmsfmr101.fm.intel.com (fmsfmr101.fm.intel.com [10.253.24.21]) by fmsfmr002.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9BIstIJ003163; Tue, 11 Oct 2005 18:54:55 GMT Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com [132.233.42.124]) by fmsfmr101.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9BIslvl002510; Tue, 11 Oct 2005 18:54:55 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101111545420086 ; Tue, 11 Oct 2005 11:54:54 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 11 Oct 2005 11:54:48 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] XML regression test cases... Date: Tue, 11 Oct 2005 11:54:47 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] XML regression test cases... Thread-Index: AcXOaxXg5ldVD79zRD21TDeTaF3MIwAKRiJQ From: "Jain, Nilesh" To: , "Kasimier Buchcik" X-OriginalArrivalTime: 11 Oct 2005 18:54:48.0715 (UTC) FILETIME=[411325B0:01C5CE95] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.21 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 18:55:36 -0000 >-----Original Message----- >From: Daniel Veillard [mailto:veillard@redhat.com] > >On Tue, Oct 11, 2005 at 11:40:54AM +0200, Kasimier Buchcik wrote: >> > Another question related to internal regression test suite (runtest), >> > Are they used to confirm the behavior of public interface or What part >> > of library do they validate? Do you think they are important to be part >> > of LSB runtime test suite which is used to confirm distribution against >> > the specification. > > I think runtest might be a good fit for the runtime tests, but it >requires >quite a bit of data, and results may still deviate a bit over time >(sometimes >serialization changes), it at least ensure most of the main APIs are >working >correctly. If these test are checking the behavior of specified ABI, then why result deviates assuming ABI are stable. =20 > testapi is rather an internal test, and testsuite is way too focused >on specific schemas issues (plus it requires globs of data). Why do you think testapi is internal test cases, where as to my understanding these are testing all the public interfaces of library.=20 From veillard@redhat.com Tue Oct 11 15:10:40 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 177393B0AE6 for ; Tue, 11 Oct 2005 15:10:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08081-03 for ; Tue, 11 Oct 2005 15:10:38 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 60C193B097F for ; Tue, 11 Oct 2005 15:10:38 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BJAL7D002920; Tue, 11 Oct 2005 15:10:21 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BJAGV14329; Tue, 11 Oct 2005 15:10:16 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BJAGqk010332; Tue, 11 Oct 2005 15:10:16 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BJAD8i010328; Tue, 11 Oct 2005 15:10:13 -0400 Date: Tue, 11 Oct 2005 15:10:13 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] XML regression test cases... Message-ID: <20051011191013.GJ17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 19:10:40 -0000 On Tue, Oct 11, 2005 at 11:54:47AM -0700, Jain, Nilesh wrote: > >requires > >quite a bit of data, and results may still deviate a bit over time > >(sometimes > >serialization changes), it at least ensure most of the main APIs are > >working > >correctly. > > If these test are checking the behavior of specified ABI, then why > result deviates assuming ABI are stable. Because they implement a few thousand pages of complex specifications ! > > testapi is rather an internal test, and testsuite is way too focused > >on specific schemas issues (plus it requires globs of data). > > Why do you think testapi is internal test cases, where as to my > understanding these are testing all the public interfaces of library. Because they are only testing that it doesn't crash nor leak. You could add them, their value is low compared to runtest. Also it will go though internal APIs and deprecated ones as well. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 11 15:16:05 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E33113B3B94 for ; Tue, 11 Oct 2005 15:16:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08339-03 for ; Tue, 11 Oct 2005 15:16:03 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id E76043B3B99 for ; Tue, 11 Oct 2005 15:16:02 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BJFjGH004878; Tue, 11 Oct 2005 15:15:45 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BJFfV16139; Tue, 11 Oct 2005 15:15:41 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BJFf2U012022; Tue, 11 Oct 2005 15:15:41 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BJFcHc011905; Tue, 11 Oct 2005 15:15:38 -0400 Date: Tue, 11 Oct 2005 15:15:38 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] XML regression test cases... Message-ID: <20051011191537.GK17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 19:16:05 -0000 On Tue, Oct 11, 2005 at 11:54:47AM -0700, Jain, Nilesh wrote: > > I think runtest might be a good fit for the runtime tests, but it > >requires > >quite a bit of data, and results may still deviate a bit over time > >(sometimes > >serialization changes), it at least ensure most of the main APIs are > >working > >correctly. > > If these test are checking the behavior of specified ABI, then why > result deviates assuming ABI are stable. I will try to take an example putting this in parallel. If you were testing the Mozilla rendering on a set of complex HTML pages, would you consider failure to match an exact rendering at the pixel level for those pages to be wrong. Obviously no! This is the same for libxml2 processing on some complex processin/transformations, it will usually give exactly the same output on two runs in different environemnt, but failure to do so doesn't mean it's broken. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From jason@fatpipeinc.com Tue Oct 11 16:11:11 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A90493B2871 for ; Tue, 11 Oct 2005 16:11:11 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12536-04 for ; Tue, 11 Oct 2005 16:11:09 -0400 (EDT) Received: from mail.fatpipeinc.com (67.107.195.251.ptr.us.xo.net [67.107.195.251]) by menubar.gnome.org (Postfix) with ESMTP id 44FCC3B3AD1 for ; Tue, 11 Oct 2005 16:11:09 -0400 (EDT) Received: from jasonpc by mail.fatpipeinc.com (Merak 8.2.4) with SMTP id CMB38544 for ; Tue, 11 Oct 2005 14:11:09 -0600 Message-ID: <004101c5ce9f$ead00370$9100000a@jasonpc> From: "Jason Aeschilman" To: Date: Tue, 11 Oct 2005 14:11:08 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.001 tagged_above=-999 required=2 tests=[BAYES_50] X-Spam-Score: 0.001 X-Spam-Level: Subject: [xml] xmlSetGenericErrorFunc -vs- xmlSetStructuredErrorFunc X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 20:11:11 -0000 I'm unclear on when you use xmlSetGenericErrorFunc versus xmlSetStructuredErrorFunc. All the errors that I have seen so far get handled by the handler I pass into xmlSetGenericErrorFunc. So what is xmlSetStructuredErrorFunc used for? Jason From veillard@redhat.com Tue Oct 11 16:27:34 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 42ED33B3C1D for ; Tue, 11 Oct 2005 16:27:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13568-07 for ; Tue, 11 Oct 2005 16:27:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 5DD3D3B1434 for ; Tue, 11 Oct 2005 16:27:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BKRUpe032161; Tue, 11 Oct 2005 16:27:30 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BKRUV06067; Tue, 11 Oct 2005 16:27:30 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BKRTNR004307; Tue, 11 Oct 2005 16:27:29 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BKRTU3004303; Tue, 11 Oct 2005 16:27:29 -0400 Date: Tue, 11 Oct 2005 16:27:29 -0400 From: Daniel Veillard To: Jason Aeschilman Subject: Re: [xml] xmlSetGenericErrorFunc -vs- xmlSetStructuredErrorFunc Message-ID: <20051011202729.GN17427@redhat.com> References: <004101c5ce9f$ead00370$9100000a@jasonpc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004101c5ce9f$ead00370$9100000a@jasonpc> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 20:27:34 -0000 On Tue, Oct 11, 2005 at 02:11:08PM -0600, Jason Aeschilman wrote: > I'm unclear on when you use xmlSetGenericErrorFunc versus > xmlSetStructuredErrorFunc. All the errors that I have seen so far get > handled by the handler I pass into xmlSetGenericErrorFunc. So what is > xmlSetStructuredErrorFunc used for? instead of getting a string with the error message you get a structure with all the informations about the error. It can be way more useful in integrated error reporting. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From jason@fatpipeinc.com Tue Oct 11 16:32:08 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E8493B3BFF for ; Tue, 11 Oct 2005 16:32:08 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14014-05 for ; Tue, 11 Oct 2005 16:32:06 -0400 (EDT) Received: from mail.fatpipeinc.com (67.107.195.251.ptr.us.xo.net [67.107.195.251]) by menubar.gnome.org (Postfix) with ESMTP id 6F3A33B2889 for ; Tue, 11 Oct 2005 16:32:05 -0400 (EDT) Received: from jasonpc by mail.fatpipeinc.com (Merak 8.2.4) with SMTP id CMB38544 for ; Tue, 11 Oct 2005 14:32:05 -0600 Message-ID: <000601c5cea2$d7b16c40$9100000a@jasonpc> From: "Jason Aeschilman" To: Date: Tue, 11 Oct 2005 14:32:04 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.524 tagged_above=-999 required=2 tests=[BAYES_01] X-Spam-Score: -1.524 X-Spam-Level: Subject: [xml] xmlGenericErrorFunc error handling X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 20:32:08 -0000 Other people on this list pointed out that if you're creating your own error handler, you have to deal with your error handler being called multiple times for a single error. So here is my question: How can I safely gather the entire error message and output it to a log file in one line? What I have done to work around this so far is to store all the pieces of the error message in a static buffer (static char *) until I receive the piece (string) that ends in a newline character, then I copy the buffer to my logging function (also prepending "libxml:" to it). Therefore, I'm making the assumption that I will eventually get a string that ends in a newline character. I'm not sure if that's a safe assumption. Jason --- Registering the callback: xmlSetGenericErrorFunc(NULL, (xmlGenericErrorFunc)libxml_log); Defining the callback function: void libxml_log(void *ctx, const char *msg, ...) { } From nilesh.jain@intel.com Tue Oct 11 16:56:35 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 7B3DC3B072C for ; Tue, 11 Oct 2005 16:56:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15664-02 for ; Tue, 11 Oct 2005 16:56:28 -0400 (EDT) Received: from fmsfmr006.fm.intel.com (fmr16.intel.com [192.55.52.70]) by menubar.gnome.org (Postfix) with ESMTP id 08EA63B29B9 for ; Tue, 11 Oct 2005 16:56:27 -0400 (EDT) Received: from fmsfmr101.fm.intel.com (fmsfmr101.fm.intel.com [10.253.24.21]) by fmsfmr006.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9BKuN3B023177; Tue, 11 Oct 2005 20:56:23 GMT Received: from fmsmsxvs042.fm.intel.com (fmsmsxvs042.fm.intel.com [132.233.42.128]) by fmsfmr101.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9BKtEwN027617; Tue, 11 Oct 2005 20:56:19 GMT Received: from fmsmsx331.amr.corp.intel.com ([132.233.42.156]) by fmsmsxvs042.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101113561021397 ; Tue, 11 Oct 2005 13:56:13 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx331.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 11 Oct 2005 13:55:43 -0700 Received: from 134.134.158.125 ([134.134.158.125]) by fmsmsx408.amr.corp.intel.com ([132.233.42.219]) via Exchange Front-End Server email.intel.com ([192.168.65.24]) with Microsoft Exchange Server HTTP-DAV ; Tue, 11 Oct 2005 20:55:42 +0000 Received: from nikka-dev.jf.intel.com.jf.intel.com by email.intel.com; 11 Oct 2005 14:01:56 -0700 Subject: Re: [xml] XML regression test cases... From: "Jain, Nilesh" To: veillard@redhat.com In-Reply-To: <20051011191537.GK17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> <20051011191537.GK17427@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 11 Oct 2005 14:01:56 -0700 Message-Id: <1129064516.20144.11.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3-1.3.101mdk X-OriginalArrivalTime: 11 Oct 2005 20:55:43.0532 (UTC) FILETIME=[25485EC0:01C5CEA6] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.21 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 20:56:35 -0000 On Tue, 2005-10-11 at 15:15 -0400, Daniel Veillard wrote: > I will try to take an example putting this in parallel. If you were testing > the Mozilla rendering on a set of complex HTML pages, would you consider > failure to match an exact rendering at the pixel level for those pages > to be wrong. Obviously no! This is the same for libxml2 processing on some > complex processin/transformations, it will usually give exactly the same > output on two runs in different environemnt, but failure to do so doesn't > mean it's broken. I understand that and agree with you but one thing which still bothers me is when I run these regression test from 2.20 against code base of 2.22 and see around 51 test errors. Theoretically I should not see errors if ABI behavior is constant and running in same environment. Am I correct or missing something? Why I am looking from that point of view is if I include these test cases into LSB runtime for conformance, and let say spec is based on 2.22 and distro is running 2.24/2.25.. test cases which is confirming the specs should not fail in same environment. BTW the error messages I get when I run 2.20 against 2.22 code base is: ## XML regression tests File ./test/xhtml1 generated an error ## XML regression tests on memory Result for ./test/xhtml1 failed File ./test/xhtml1 generated an error ## XML entity subst regression tests File ./test/xhtml1 generated an error ## XML Namespaces regression tests ## Error cases regression tests ## Error cases stream regression tests ## Reader regression tests ## Reader entities substitution regression tests ## Reader on memory regression tests ## Walker regression tests ## SAX1 callbacks regression tests Got a difference for ./test/ent2 File ./test/ent2 generated an error Got a difference for ./test/ent7 File ./test/ent7 generated an error Got a difference for ./test/xml2 File ./test/xml2 generated an error ## SAX2 callbacks regression tests Got a difference for ./test/ent2 File ./test/ent2 generated an error Got a difference for ./test/ent7 File ./test/ent7 generated an error Got a difference for ./test/xml2 File ./test/xml2 generated an error ## XML push regression tests Result for ./test/xhtml1 failed File ./test/xhtml1 generated an error ## HTML regression tests Result for ./test/HTML/Down.html failed File ./test/HTML/Down.html generated an error Result for ./test/HTML/attrents.html failed File ./test/HTML/attrents.html generated an error Result for ./test/HTML/cf_128.html failed File ./test/HTML/cf_128.html generated an error Result for ./test/HTML/doc2.htm failed File ./test/HTML/doc2.htm generated an error Result for ./test/HTML/doc3.htm failed File ./test/HTML/doc3.htm generated an error Result for ./test/HTML/fp40.htm failed File ./test/HTML/fp40.htm generated an error Result for ./test/HTML/liclose.html failed File ./test/HTML/liclose.html generated an error Result for ./test/HTML/pre.html failed File ./test/HTML/pre.html generated an error Result for ./test/HTML/python.html failed File ./test/HTML/python.html generated an error Result for ./test/HTML/test2.html failed File ./test/HTML/test2.html generated an error Result for ./test/HTML/test3.html failed File ./test/HTML/test3.html generated an error Result for ./test/HTML/wired.html failed File ./test/HTML/wired.html generated an error ## Push HTML regression tests Result for ./test/HTML/Down.html failed File ./test/HTML/Down.html generated an error Result for ./test/HTML/attrents.html failed File ./test/HTML/attrents.html generated an error Result for ./test/HTML/cf_128.html failed File ./test/HTML/cf_128.html generated an error Result for ./test/HTML/doc2.htm failed File ./test/HTML/doc2.htm generated an error Result for ./test/HTML/doc3.htm failed File ./test/HTML/doc3.htm generated an error Result for ./test/HTML/fp40.htm failed File ./test/HTML/fp40.htm generated an error Result for ./test/HTML/liclose.html failed File ./test/HTML/liclose.html generated an error Result for ./test/HTML/pre.html failed File ./test/HTML/pre.html generated an error Result for ./test/HTML/python.html failed File ./test/HTML/python.html generated an error Result for ./test/HTML/test2.html failed File ./test/HTML/test2.html generated an error Result for ./test/HTML/test3.html failed File ./test/HTML/test3.html generated an error Result for ./test/HTML/wired.html failed File ./test/HTML/wired.html generated an error ## HTML SAX regression tests Got a difference for ./test/HTML/Down.html File ./test/HTML/Down.html generated an error Got a difference for ./test/HTML/attrents.html File ./test/HTML/attrents.html generated an error Got a difference for ./test/HTML/cf_128.html File ./test/HTML/cf_128.html generated an error Got a difference for ./test/HTML/doc2.htm File ./test/HTML/doc2.htm generated an error Got a difference for ./test/HTML/doc3.htm File ./test/HTML/doc3.htm generated an error Got a difference for ./test/HTML/fp40.htm File ./test/HTML/fp40.htm generated an error Got a difference for ./test/HTML/liclose.html File ./test/HTML/liclose.html generated an error Got a difference for ./test/HTML/pre.html File ./test/HTML/pre.html generated an error Got a difference for ./test/HTML/python.html File ./test/HTML/python.html generated an error Got a difference for ./test/HTML/reg1.html File ./test/HTML/reg1.html generated an error Got a difference for ./test/HTML/reg2.html File ./test/HTML/reg2.html generated an error Got a difference for ./test/HTML/reg3.html File ./test/HTML/reg3.html generated an error Got a difference for ./test/HTML/reg4.html File ./test/HTML/reg4.html generated an error Got a difference for ./test/HTML/script.html File ./test/HTML/script.html generated an error Got a difference for ./test/HTML/test2.html File ./test/HTML/test2.html generated an error Got a difference for ./test/HTML/test3.html File ./test/HTML/test3.html generated an error Got a difference for ./test/HTML/wired.html File ./test/HTML/wired.html generated an error ## Valid documents regression tests ## Validity checking regression tests ## General documents valid regression tests ## XInclude regression tests ## XInclude xmlReader regression tests ## XInclude regression tests stripping include nodes ## XInclude xmlReader regression tests stripping include nodes ## XPath expressions regression tests ## XPath document queries regression tests ## XPointer document queries regression tests ## xml:id regression tests ## URI parsing tests ## URI base composition tests ## Schemas regression tests Error for ./test/schemas/any3_0.xml on ./test/schemas/any3_0.xsd failed Error for ./test/schemas/bug303566_1.xml on ./test/schemas/bug303566_1.xsd failed Error for ./test/schemas/changelog093_0.xml on ./test/schemas/changelog093_1.xsd failed Result for ./test/schemas/derivation-ok-extension_0.xml on ./test/schemas/deriva tion-ok-extension_0.xsd failed Error for ./test/schemas/derivation-ok-extension_0.xml on ./test/schemas/derivat ion-ok-extension_0.xsd failed ## Relax-NG regression tests ## Relax-NG streaming regression tests ## Pattern regression tests ## C14N with comments regression tests ## C14N without comments regression tests ## C14N exclusive without comments regression tests ## Catalog and Threads regression tests Total 2557 tests, 51 errors, 0 leaks I also see one error message while running 2.22 code base against 2.22 code. ## Schemas regression tests Error for ./test/schemas/derivation-ok-extension_0.xml on ./test/schemas/derivation-ok-extension_0.xsd failed Thanks, Nilesh From graham-libxml@simulcra.org Tue Oct 11 17:03:03 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 19EA93B3C00 for ; Tue, 11 Oct 2005 17:03:03 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16219-03 for ; Tue, 11 Oct 2005 17:03:01 -0400 (EDT) Received: from lamity.org (lamity.org [212.13.197.69]) by menubar.gnome.org (Postfix) with SMTP id BF7533B3B4C for ; Tue, 11 Oct 2005 17:02:49 -0400 (EDT) Received: (qmail 32534 invoked by uid 1001); 11 Oct 2005 21:02:38 -0000 Date: Tue, 11 Oct 2005 22:02:38 +0100 From: Graham Bennett To: Kasimier Buchcik Subject: Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation Message-ID: <20051011210238.GB22843@lamity.org> Mail-Followup-To: Kasimier Buchcik , ML-libxml2 References: <20051009204118.GC18937@lamity.org> <1128933006.1272.15.camel@librax> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1128933006.1272.15.camel@librax> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 21:03:03 -0000 On Mon, Oct 10, 2005 at 10:30:06AM +0200, Kasimier Buchcik wrote: > Hi, > > On Sun, 2005-10-09 at 21:41 +0100, Graham Bennett wrote: > > Hi, > > > > I've been playing with xmlSchemaSAXPlug to do schema validation on my > > own stream of SAX events and it's proving to be very useful. However it > > seems that a schema is required to be provided up front in order to get > > an xmlSchemaValidCtxt. > > > > Is there any automatic way to handle the situation where the schema > > location is provided as an xsi:schemaLocation attribute in the SAX > > stream, or should I just handle it myself? I suppose I should be able > > to detect such an attribute, plug in the validating sax handler, then > > replay the events I have already seen, but this seems a bit messy. > > Create the schema validation context with a NULL for the @schema > argument if you want to switch on xsi-driven schema acquisition. > Internally a new schema will be created during the validation and > all the schemata, specified via xsi, will be constructed. > However, this is a bit limited, since Libxml2's schema processors > wants references to schema components to be resolved after each > schema construction episode; thus it will work only on a subset > of all the possible scenarios. E.g. if you have a schema at the > document element, which references a component which would be > acquired deeper in the tree (via a second xsi acquisition) then > you would get a reference resolution error with Libxml2, while the > spec allows such "late binding". Thanks Kasimier, I'll try this. Just to check, is the 'late binding' problem an issue with libxml2 schema in general or just when using the SAX plug interface? Thanks, Graham. -- Graham Bennett From graham-libxml@simulcra.org Tue Oct 11 17:04:15 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C9F03B3C74 for ; Tue, 11 Oct 2005 17:04:15 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16314-02 for ; Tue, 11 Oct 2005 17:04:13 -0400 (EDT) Received: from lamity.org (lamity.org [212.13.197.69]) by menubar.gnome.org (Postfix) with SMTP id AF6883B3C7F for ; Tue, 11 Oct 2005 17:04:12 -0400 (EDT) Received: (qmail 458 invoked by uid 1001); 11 Oct 2005 21:04:06 -0000 Date: Tue, 11 Oct 2005 22:04:06 +0100 From: Graham Bennett To: Daniel Veillard Subject: Re: [xml] relaxng equivalent of xmlSchemaSAXPlug? Message-ID: <20051011210406.GC22843@lamity.org> Mail-Followup-To: Daniel Veillard , xml@gnome.org References: <20051009210100.GD18937@lamity.org> <20051010031802.GA3759@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051010031802.GA3759@redhat.com> User-Agent: Mutt/1.5.6+20040907i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_XN] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 21:04:15 -0000 On Sun, Oct 09, 2005 at 11:18:02PM -0400, Daniel Veillard wrote: > On Sun, Oct 09, 2005 at 10:01:00PM +0100, Graham Bennett wrote: > > Hi, > > > > I was wondering if there was functionality in libxml2 equivalent to > > xmlSchemaSAXPlug that would do relaxng validation? > > Unfortunately due to the type of validator implemented for Relax-NG > that's not possible. changing the type of validator would require some > serious work. I considered doing the same for DTD validation, it should > not be too hard with the current code but this is less useful. Ok thanks Daniel. DTD validation would be be handy, but as you say not as useful as relax-ng. Thanks anyway, Graham. -- Graham Bennett From veillard@redhat.com Tue Oct 11 17:12:50 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 028C93B3CA0 for ; Tue, 11 Oct 2005 17:12:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16921-07 for ; Tue, 11 Oct 2005 17:12:48 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 8EB363B3CEC for ; Tue, 11 Oct 2005 17:12:46 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLCdAq017806; Tue, 11 Oct 2005 17:12:39 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BLCYV22520; Tue, 11 Oct 2005 17:12:39 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLCYqI022013; Tue, 11 Oct 2005 17:12:34 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BLCWjo022008; Tue, 11 Oct 2005 17:12:32 -0400 Date: Tue, 11 Oct 2005 17:12:32 -0400 From: Daniel Veillard To: Kasimier Buchcik , ML-libxml2 Subject: Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation Message-ID: <20051011211231.GO17427@redhat.com> References: <20051009204118.GC18937@lamity.org> <1128933006.1272.15.camel@librax> <20051011210238.GB22843@lamity.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051011210238.GB22843@lamity.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 21:12:50 -0000 On Tue, Oct 11, 2005 at 10:02:38PM +0100, Graham Bennett wrote: > On Mon, Oct 10, 2005 at 10:30:06AM +0200, Kasimier Buchcik wrote: > > Create the schema validation context with a NULL for the @schema > > argument if you want to switch on xsi-driven schema acquisition. > > Internally a new schema will be created during the validation and > > all the schemata, specified via xsi, will be constructed. > > However, this is a bit limited, since Libxml2's schema processors > > wants references to schema components to be resolved after each > > schema construction episode; thus it will work only on a subset > > of all the possible scenarios. E.g. if you have a schema at the > > document element, which references a component which would be > > acquired deeper in the tree (via a second xsi acquisition) then > > you would get a reference resolution error with Libxml2, while the > > spec allows such "late binding". > > Thanks Kasimier, I'll try this. Just to check, is the 'late binding' > problem an issue with libxml2 schema in general or just when using the > SAX plug interface? I would tentatively say this is general to libxml2 as even tree validation uses the same internal callback interfaces, but Kasimier may correct me if I'm wrong :-) Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 11 17:26:08 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E4AEF3B3CBD for ; Tue, 11 Oct 2005 17:26:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17786-06 for ; Tue, 11 Oct 2005 17:26:04 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 3F6CC3B3C96 for ; Tue, 11 Oct 2005 17:26:03 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLPjXI022634; Tue, 11 Oct 2005 17:25:45 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BLPfV26974; Tue, 11 Oct 2005 17:25:41 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLPfEl027475; Tue, 11 Oct 2005 17:25:41 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BLPdla027471; Tue, 11 Oct 2005 17:25:39 -0400 Date: Tue, 11 Oct 2005 17:25:38 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] XML regression test cases... Message-ID: <20051011212538.GP17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> <20051011191537.GK17427@redhat.com> <1129064516.20144.11.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129064516.20144.11.camel@nikka-dev.jf.intel.com.jf.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 21:26:08 -0000 On Tue, Oct 11, 2005 at 02:01:56PM -0700, Jain, Nilesh wrote: > On Tue, 2005-10-11 at 15:15 -0400, Daniel Veillard wrote: > > > I will try to take an example putting this in parallel. If you were testing > > the Mozilla rendering on a set of complex HTML pages, would you consider > > failure to match an exact rendering at the pixel level for those pages > > to be wrong. Obviously no! This is the same for libxml2 processing on some > > complex processin/transformations, it will usually give exactly the same > > output on two runs in different environemnt, but failure to do so doesn't > > mean it's broken. > > I understand that and agree with you but one thing which still bothers > me is when I run these regression test from 2.20 against code base of > 2.22 and see around 51 test errors. Theoretically I should not see > errors if ABI behavior is constant and running in same environment. Am I > correct or missing something? > > Why I am looking from that point of view is if I include these test > cases into LSB runtime for conformance, and let say spec is based on > 2.22 and distro is running 2.24/2.25.. test cases which is confirming > the specs should not fail in same environment. > > BTW the error messages I get when I run 2.20 against 2.22 code base is: > ## XML regression tests > File ./test/xhtml1 generated an error Please look at the difference between the ./test/xhtml1 output with 2.20 against what is expected from 2.22 This was discussed on this list during the month of August IIRC. > ## SAX1 callbacks regression tests > Got a difference for ./test/ent2 > File ./test/ent2 generated an error Same thing. Could you make a diff and check by yourselves ? > Got a difference for ./test/ent7 I saw those changes, and validated them, otherwise they would not have gone in CVS. I take a user viewpoint when I make those decisions, if you think they should not have gone in, please explain why :-) > ## Schemas regression tests > Error for ./test/schemas/any3_0.xml on ./test/schemas/any3_0.xsd failed > Error for ./test/schemas/bug303566_1.xml > on ./test/schemas/bug303566_1.xsd failed yes the XML Schemas implementation improved between those 2 versions. Don't worry, even Microsoft is being fixing their XML Schemas implementation as you can see on xmlschemas-dev@w3.org mailing list ! And the complexity of the spec even warrant the garantee that you will never see change in interpretation of the spec, there are parts nobody is 100% sure about. This doesn't mean XSD support in libxml2 is not useful, nor that peopel are not using it. > I also see one error message while running 2.22 code base against 2.22 > code. > ## Schemas regression tests > Error for ./test/schemas/derivation-ok-extension_0.xml > on ./test/schemas/derivation-ok-extension_0.xsd failed bug in the test program itself. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 11 17:27:43 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D5CFD3B3C8C for ; Tue, 11 Oct 2005 17:27:42 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17806-10 for ; Tue, 11 Oct 2005 17:27:41 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 9E2993B07E0 for ; Tue, 11 Oct 2005 17:27:40 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLRddr023289; Tue, 11 Oct 2005 17:27:39 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9BLRdV27665; Tue, 11 Oct 2005 17:27:39 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9BLRd2s028807; Tue, 11 Oct 2005 17:27:39 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9BLRccG028805; Tue, 11 Oct 2005 17:27:38 -0400 Date: Tue, 11 Oct 2005 17:27:38 -0400 From: Daniel Veillard To: Jason Aeschilman Subject: Re: [xml] xmlGenericErrorFunc error handling Message-ID: <20051011212738.GQ17427@redhat.com> References: <000601c5cea2$d7b16c40$9100000a@jasonpc> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000601c5cea2$d7b16c40$9100000a@jasonpc> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 21:27:43 -0000 On Tue, Oct 11, 2005 at 02:32:04PM -0600, Jason Aeschilman wrote: > Other people on this list pointed out that if you're creating your own error > handler, you have to deal with your error handler being called multiple > times for a single error. So here is my question: > > How can I safely gather the entire error message and output it to a log file > in one line? > > What I have done to work around this so far is to store all the pieces of > the error message in a static buffer (static char *) until I receive the > piece (string) that ends in a newline character, then I copy the buffer to > my logging function (also prepending "libxml:" to it). Therefore, I'm > making the assumption that I will eventually get a string that ends in a > newline character. I'm not sure if that's a safe assumption. no. You're better off using the structured error callback then. Note than an error may generate another one, etc... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From haisatya_4u@rediffmail.com Wed Oct 12 04:05:51 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3CD113B0ADB for ; Wed, 12 Oct 2005 04:05:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23410-01 for ; Wed, 12 Oct 2005 04:05:46 -0400 (EDT) Received: from rediffmail.com (unknown [203.199.83.35]) by menubar.gnome.org (Postfix) with SMTP id E03143B3F8B for ; Wed, 12 Oct 2005 04:05:43 -0400 (EDT) Received: (qmail 12662 invoked by uid 510); 12 Oct 2005 08:05:32 -0000 Date: 12 Oct 2005 08:05:32 -0000 Message-ID: <20051012080532.12661.qmail@webmail49.rediffmail.com> Received: from unknown (220.227.201.154) by rediffmail.com via HTTP; 12 oct 2005 08:05:28 -0000 MIME-Version: 1.0 From: "SATISH KUMAR" To: xml@gnome.org Content-type: multipart/alternative; boundary="Next_1129104328---0-203.199.83.35-12536" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=1.504 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, MSGID_FROM_MTA_HEADER, REPLY_TO_ULINE_NUMS] X-Spam-Score: 1.504 X-Spam-Level: * Subject: [xml] SAX Query X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: SATISH KUMAR List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 08:05:51 -0000 This is a multipart mime message --Next_1129104328---0-203.199.83.35-12536 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline HI, =0A=0AI am implementing my own SAX parser where I am =0Aregistering my = handlers with the SAX handler structure(=0Awhich used to call SAX2.c functi= ons for DOM).=0AIncidentally, the validation happens inside the =0ASAX2.c f= unctions when the tree is being built.=0ASince I also need to support valid= ation in the SAX=0Aparser I will not be able to call my handlers directly f= rom parser.c.=0ARather I would need to call the SAX2.c functions where=0Ath= e validation happens along with the tree building.=0AI would like to know i= f there is a way to validate(DTD validation)=0Awithout building a tree(whic= h happens in SAX2.c). I also understand=0Athat validation requires informat= ion about child elements which=0Awould not be stored if I do normal SAX par= sing.=0A=0AAny help would be appreciated as it is very urgent.=0A=0ARegards= ,=0ASatish=0A --Next_1129104328---0-203.199.83.35-12536 Content-type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

=0AHI,
=0A
=0AI am implementing my own SAX parser where I am
= =0Aregistering my handlers with the SAX handler structure(
=0Awhich used= to call SAX2.c functions for DOM).
=0AIncidentally, the validation happ= ens inside the
=0ASAX2.c functions when the tree is being built.
=0A= Since I also need to support validation in the SAX
=0Aparser I will not = be able to call my handlers directly from parser.c.
=0ARather I would ne= ed to call the SAX2.c functions where
=0Athe validation happens along wi= th the tree building.
=0AI would like to know if there is a way to valid= ate(DTD validation)
=0Awithout building a tree(which happens in SAX2.c).= I also understand
=0Athat validation requires information about child e= lements which
=0Awould not be stored if I do normal SAX parsing.
=0A<= BR>=0AAny help would be appreciated as it is very urgent.
=0A
=0ARega= rds,
=0ASatish
=0A=0A

=0A

=0A=0A --Next_1129104328---0-203.199.83.35-12536-- From mh@glandium.org Wed Oct 12 04:22:40 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9B433B3F91 for ; Wed, 12 Oct 2005 04:22:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24203-07 for ; Wed, 12 Oct 2005 04:22:37 -0400 (EDT) Received: from namakemono.glandium.org (APuteaux-153-1-2-195.w82-124.abo.wanadoo.fr [82.124.48.195]) by menubar.gnome.org (Postfix) with ESMTP id 16F2B3B0C1A for ; Wed, 12 Oct 2005 04:22:37 -0400 (EDT) Received: from mh by namakemono.glandium.org with local (Exim 4.54) id 1EPbsu-0004Gp-29 for xml@gnome.org; Wed, 12 Oct 2005 10:22:48 +0200 Date: Wed, 12 Oct 2005 10:22:48 +0200 From: Mike Hommey To: xml@gnome.org Message-ID: <20051012082248.GA16291@glandium.org> Mail-Followup-To: xml@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-GPG-Fingerprint: A479 A824 265C B2A5 FC54 8D1E DE4B DA2C 54FD 2A58 Organization: glandium.org User-Agent: Mutt/1.5.11 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.047 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_DYNABLOCK, RCVD_IN_SORBS, TW_BX, TW_IB] X-Spam-Score: -2.047 X-Spam-Level: Subject: [xml] Copyright infringment in libxml2 source tarballs X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 08:22:40 -0000 Hi, I got this bug report on the Debian BTS. libxml2 testsuite includes several testfiles that are unclear if they are DFSG free. These seem to downloaded from various websites, without being aware that typically websited do not allow redistributing their content without permissions. Atleast the following files were spotted to be probably nonfree material test/HTML/fp40.htm - Microsoft Frontpage readme file test/HTML/wired.html - Wired.com frontpage test/HTML/test2.html - Old linuxtoday.com page test/slashdot.rdf - slashdot rss feed test/slashdot.xml - slashdot rss feed test/slashdot16.xml - slashdot rss feed test/wap.xml - While it is an obvious issue for Debian, it is also one for libxml2 upstream, that I think you should do something about. Mike From K.Buchcik@4commerce.de Wed Oct 12 04:40:38 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 9B6643B49E9 for ; Wed, 12 Oct 2005 04:40:38 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25598-01 for ; Wed, 12 Oct 2005 04:40:37 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 76A823B3FB2 for ; Wed, 12 Oct 2005 04:40:36 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPcA2-0006Hs-Ru; Wed, 12 Oct 2005 10:40:30 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPcA2-0006Hn-Cq; Wed, 12 Oct 2005 10:40:30 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 12 Oct 2005 10:40:33 +0200 From: Kasimier Buchcik To: Daniel Veillard In-Reply-To: <20051011172821.GD17427@redhat.com> References: <20051011172821.GD17427@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Oct 2005 10:40:33 +0200 Message-Id: <1129106433.1294.15.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] How to creata one big DOM from Multiple DOMS X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 , "Vedantam, Pavan" X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 08:40:38 -0000 On Tue, 2005-10-11 at 13:28 -0400, Daniel Veillard wrote: > On Tue, Oct 11, 2005 at 12:16:39PM -0500, Vedantam, Pavan wrote: > > > > Hi, > > I am using Libxml2 to parse the xml documents and build DOMS, I would like > > to know if there is a provision for linking the DOMS so that all the DOMS > > are under one ROOT ?, > > not really. > > > i.e I should be able to traverse the DOMS through one > > starting point, just like a tree. > > you could move the element roots under the new top, but you should > first either disable dictionaries at parsing time or make sure all > document are parsed with the same dictionnary (which is best done > by reusing the same parser context for all parses) > > Daniel Optionally you could try (and test) some new functions in tree.c. Assuming we have: A-doc with document element A-elem B-doc with document element B-elem the destination C-doc with document element C-elem /* Move A-elem to C-doc. */ xmlDOMWrapAdoptNode(NULL, A-doc, A-elem, C-doc, C-elem, 0); xmlAddChild(C-elem, A-elem); ... and the same procedure for B-elem. This is designed to: - handle docs with different/none string dictionaries - handle ID-attributes - handle out-of-scope namespace declarations (xmlNs) However, it will be slower than Daniel's solution, since the moved branch needs to be fully traversed and the strings to be reallocated if different dictionaries are used. The xmlDOM... functions are relatively new, so we'll be happy to have them better tested. Regards, Kasimier From K.Buchcik@4commerce.de Wed Oct 12 05:37:33 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2F8883B4A07 for ; Wed, 12 Oct 2005 05:37:33 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 29397-01 for ; Wed, 12 Oct 2005 05:37:29 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 330A03B4A14 for ; Wed, 12 Oct 2005 05:37:29 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPd36-0006NG-59; Wed, 12 Oct 2005 11:37:24 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EPd35-0006NB-KW; Wed, 12 Oct 2005 11:37:24 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 12 Oct 2005 11:37:27 +0200 From: Kasimier Buchcik To: Daniel Veillard In-Reply-To: <20051011211231.GO17427@redhat.com> References: <20051009204118.GC18937@lamity.org> <1128933006.1272.15.camel@librax> <20051011210238.GB22843@lamity.org> <20051011211231.GO17427@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 12 Oct 2005 11:37:26 +0200 Message-Id: <1129109846.1294.55.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] xmlSchemaSAXPlug and xsi:schemaLocation X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 , Graham Bennett X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 09:37:33 -0000 Hi, On Tue, 2005-10-11 at 17:12 -0400, Daniel Veillard wrote: > On Tue, Oct 11, 2005 at 10:02:38PM +0100, Graham Bennett wrote: > > On Mon, Oct 10, 2005 at 10:30:06AM +0200, Kasimier Buchcik wrote: > > > Create the schema validation context with a NULL for the @schema > > > argument if you want to switch on xsi-driven schema acquisition. > > > Internally a new schema will be created during the validation and > > > all the schemata, specified via xsi, will be constructed. > > > However, this is a bit limited, since Libxml2's schema processors > > > wants references to schema components to be resolved after each > > > schema construction episode; thus it will work only on a subset > > > of all the possible scenarios. E.g. if you have a schema at the > > > document element, which references a component which would be > > > acquired deeper in the tree (via a second xsi acquisition) then > > > you would get a reference resolution error with Libxml2, while the > > > spec allows such "late binding". > > > > Thanks Kasimier, I'll try this. Just to check, is the 'late binding' > > problem an issue with libxml2 schema in general or just when using the > > SAX plug interface? > > I would tentatively say this is general to libxml2 as even tree validation > uses the same internal callback interfaces, but Kasimier may correct me if I'm > wrong :-) > > Daniel Correct, Daniel. The reason we tried not to go the 'late binding' way is that it would otherwise create a lot of pitfalls. An example is derivation of type definitions: if the reference to a base type of a type is not yet resolved, one cannot derive the type yet, thus it is not completed; and if e.g. some attribute declarations in turn are of this uncompleted type, one cannot apply attribute constraints, since they involve to have the type completed; and if e.g. some attribute groups in turn contain such attributes, then one cannot finish those attribute groups, and if e.g. some complex type reference such attribute groups one cannot complete those complex types, and e.g. if some element declarations are of such complex types, one cannot complete those elements. The worst scenario would be two schemata, a first with a lot of components, all depending on a single component which is defined in the second schema. So a lot of fun and the robustness of a castle built of matches ;-) We would need a mechanism where components are finished at individual moments, plus treat the incomplete components like fresh eggs with a lot of additional state information. Additionally I haven't stumbled yet over a scenario, which really needed such 'late binding'. Normally entry points to different namespaces are solved by using element/attribute wildcards. However, if such a high grade of polymorphism is ever needed dearly we should consider implementing it. Example cases are wellcome. Regards, Kasimier From veillard@redhat.com Wed Oct 12 09:39:12 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 968143B4C95 for ; Wed, 12 Oct 2005 09:39:12 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16165-09 for ; Wed, 12 Oct 2005 09:39:11 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 9655C3B49DE for ; Wed, 12 Oct 2005 09:38:30 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDcU3q027183 for ; Wed, 12 Oct 2005 09:38:30 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9CDcUV32719 for ; Wed, 12 Oct 2005 09:38:30 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDcTut003807 for ; Wed, 12 Oct 2005 09:38:29 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9CDcTtT003805 for xml@gnome.org; Wed, 12 Oct 2005 09:38:29 -0400 Date: Wed, 12 Oct 2005 09:38:29 -0400 From: Daniel Veillard To: xml@gnome.org Subject: Re: [xml] Copyright infringment in libxml2 source tarballs Message-ID: <20051012133829.GA28536@redhat.com> References: <20051012082248.GA16291@glandium.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051012082248.GA16291@glandium.org> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 13:39:12 -0000 On Wed, Oct 12, 2005 at 10:22:48AM +0200, Mike Hommey wrote: > Hi, > > I got this bug report on the Debian BTS. > > libxml2 testsuite includes several testfiles that are unclear if they > are DFSG free. These seem to downloaded from various websites, without > being aware that typically websited do not allow redistributing their > content without permissions. > > Atleast the following files were spotted to be probably nonfree material > > test/HTML/fp40.htm - Microsoft Frontpage readme file > test/HTML/wired.html - Wired.com frontpage > test/HTML/test2.html - Old linuxtoday.com page > test/slashdot.rdf - slashdot rss feed > test/slashdot.xml - slashdot rss feed > test/slashdot16.xml - slashdot rss feed > test/wap.xml - > > While it is an obvious issue for Debian, it is also one for libxml2 > upstream, that I think you should do something about. If you really care about it provide a patch which randomizes the content of those but keep the structure, it will still test the parser as it should and I think it would avoid the problem of redistributing the content. I doubt one can consider reusing a document structure to be a content copyright infrigement. I take patches :-), it will of course also affect the structure. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Oct 12 09:42:32 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C89BC3B0F1B for ; Wed, 12 Oct 2005 09:42:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16692-03 for ; Wed, 12 Oct 2005 09:42:31 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 22A403B13C1 for ; Wed, 12 Oct 2005 09:42:31 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDgUto028383; Wed, 12 Oct 2005 09:42:30 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9CDgUV01509; Wed, 12 Oct 2005 09:42:30 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDgUxI005146; Wed, 12 Oct 2005 09:42:30 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9CDgUtc005144; Wed, 12 Oct 2005 09:42:30 -0400 Date: Wed, 12 Oct 2005 09:42:30 -0400 From: Daniel Veillard To: SATISH KUMAR Subject: Re: [xml] SAX Query Message-ID: <20051012134230.GB28536@redhat.com> References: <20051012080532.12661.qmail@webmail49.rediffmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051012080532.12661.qmail@webmail49.rediffmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 13:42:33 -0000 On Wed, Oct 12, 2005 at 08:05:32AM -0000, SATISH KUMAR wrote: > HI, > > I am implementing my own SAX parser where I am > registering my handlers with the SAX handler structure( > which used to call SAX2.c functions for DOM). > Incidentally, the validation happens inside the > SAX2.c functions when the tree is being built. > Since I also need to support validation in the SAX > parser I will not be able to call my handlers directly from parser.c. > Rather I would need to call the SAX2.c functions where > the validation happens along with the tree building. > I would like to know if there is a way to validate(DTD validation) > without building a tree(which happens in SAX2.c). I also understand > that validation requires information about child elements which > would not be stored if I do normal SAX parsing. We don't have support for DTD validation at the SAX level. I could do this but I have more urgent things to do, sorry... > Any help would be appreciated as it is very urgent. Well if it's very urgent that means someone didn't do his work when evaluating the time needed. To me it means that I am less likely to get a good interaction with you, while it's not my fault, i.e. definitely not a positive point toward helping you.... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Wed Oct 12 09:43:43 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B06443B0F1B for ; Wed, 12 Oct 2005 09:43:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16722-07 for ; Wed, 12 Oct 2005 09:43:42 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 29F063B1002 for ; Wed, 12 Oct 2005 09:43:42 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDhfEP028778 for ; Wed, 12 Oct 2005 09:43:41 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9CDhfV01907 for ; Wed, 12 Oct 2005 09:43:41 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9CDhf6P005489 for ; Wed, 12 Oct 2005 09:43:41 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9CDhfUi005487 for xml@gnome.org; Wed, 12 Oct 2005 09:43:41 -0400 Date: Wed, 12 Oct 2005 09:43:41 -0400 From: Daniel Veillard To: xml@gnome.org Subject: Re: [xml] Copyright infringment in libxml2 source tarballs Message-ID: <20051012134341.GC28536@redhat.com> References: <20051012082248.GA16291@glandium.org> <20051012133829.GA28536@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051012133829.GA28536@redhat.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Oct 2005 13:43:43 -0000 On Wed, Oct 12, 2005 at 09:38:29AM -0400, Daniel Veillard wrote: > I take patches :-), it will of course also affect the structure. It will affect the *results* :-) Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From liam@holoweb.net Thu Oct 13 00:56:35 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A61823B1495 for ; Thu, 13 Oct 2005 00:56:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11917-01 for ; Thu, 13 Oct 2005 00:56:34 -0400 (EDT) Received: from hd-t1637cl.privatedns.com (ip-209-172-34-239.reverse.privatedns.com [209.172.34.239]) by menubar.gnome.org (Postfix) with SMTP id 701E93B1713 for ; Thu, 13 Oct 2005 00:56:33 -0400 (EDT) Received: (qmail 26665 invoked from network); 13 Oct 2005 04:59:11 -0000 Received: from localhost (HELO dell.barefootcomputing.com) (127.0.0.1) by hd-t1637cl.privatedns.com with SMTP; 13 Oct 2005 04:59:11 -0000 Subject: Re: [xml] Copyright infringment in libxml2 source tarballs From: Liam R E Quin To: Mike Hommey In-Reply-To: <20051012082248.GA16291@glandium.org> References: <20051012082248.GA16291@glandium.org> Content-Type: text/plain Date: Thu, 13 Oct 2005 00:55:52 -0400 Message-Id: <1129179352.17515.27.camel@dell.barefootcomputing.com> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3-10mdk Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: liam@holoweb.net List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 04:56:35 -0000 On Wed, 2005-10-12 at 10:22 +0200, Mike Hommey wrote: > Hi, > > I got this bug report on the Debian BTS. > > libxml2 testsuite includes several testfiles that are unclear if they > are DFSG free. [...] Elliott Rusty Harold gave a talk at Extreme Markup this year on a tool he wrote to obfuscate text content exactly for test purposes. I call the process "XML Rusting". Liam -- Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/ Pictures from old books: http://fromoldbooks.org/ Ankh: irc.sorcery.net irc.gnome.org www.advogato.org Liam on the Web: http://www.holoweb.net/~liam/ From vova@vbook.fbsd.ru Thu Oct 13 04:52:47 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E53D3B5271 for ; Thu, 13 Oct 2005 04:52:47 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28762-10 for ; Thu, 13 Oct 2005 04:52:46 -0400 (EDT) Received: from vbook.fbsd.ru (swsoft-mipt-nat.sw.ru [195.214.233.10]) by menubar.gnome.org (Postfix) with ESMTP id 2846A3B5291 for ; Thu, 13 Oct 2005 04:52:30 -0400 (EDT) Received: from vova by vbook.fbsd.ru with local (Exim 4.54 (FreeBSD)) id 1EPypA-0000uS-9c; Thu, 13 Oct 2005 12:52:28 +0400 From: Vladimir Grebenschikov To: XML Content-Type: multipart/mixed; boundary="=-Lnbtxlcmpmbzun/4LkL+" Organization: SWsoft Date: Thu, 13 Oct 2005 12:52:26 +0400 Message-Id: <1129193546.1222.33.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: skv@FreeBSD.org Subject: [xml] Perl5 binding XML::LibXML - memory problem ? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 08:52:47 -0000 --=-Lnbtxlcmpmbzun/4LkL+ Content-Type: text/plain Content-Transfer-Encoding: 7bit Hi % uname -a FreeBSD vbook.fbsd.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Mon Oct 3 02:16:18 MSD 2005 root@vbook.fbsd.ru:/usr/obj/usr/src/sys/VBOOK i386 % pkg_info -I p5-XML-LibXML\* perl\* p5-XML-LibXML-1.58_1 Interface to Gnome libxml2 library p5-XML-LibXML-Common-0.13 Routines and Constants common for XML::LibXML and XML::GDOM p5-XML-LibXML-Iterator-1.00 XML::LibXML::Iterator is an iterator for XML::LibXML parsed p5-XML-LibXML-XPathContext-0.06 Perl interface to libxml2's xmlXPathContext perl-5.8.7 Practical Extraction and Report Language % perl xpath.pl test.xml user % perl xpath.pl test2.xml test Bad free() ignored (PERL_CORE) at xpath.pl line 22. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ problem here % perl xpath.pl test3.xml test % diff test2.xml test3.xml 16,20d15 < < /var/log/builds.log < 10 < < % Actually one can remove any log, directory, email section from test2.xml and problem disappears. Commenting $xc->findnodes(..) also cures problem, (but same problem with $xc->findvalues) see xpath.pl and test*.xml in attachment. -- Vladimir B. Grebenschikov SWsoft Inc. vova@swsoft.com --=-Lnbtxlcmpmbzun/4LkL+ Content-Disposition: attachment; filename=test.xml Content-Type: text/xml; name=test.xml; charset=KOI8-R Content-Transfer-Encoding: base64 PGJ1aWxkcz4NCiAgPGRhdGFiYXNlPg0KCQk8aG9zdD5sb2NhbGhvc3Q8L2hvc3Q+DQoJCTx1c2Vy PnVzZXI8L3VzZXI+DQoJCTxuYW1lPnRlc3Q8L25hbWU+DQogIDwvZGF0YWJhc2U+DQo8L2J1aWxk cz4NCg== --=-Lnbtxlcmpmbzun/4LkL+ Content-Disposition: attachment; filename=test2.xml Content-Type: text/xml; name=test2.xml; charset=KOI8-R Content-Transfer-Encoding: base64 PGJ1aWxkcz4NCiAgPGRhdGFiYXNlPg0KCQk8aG9zdD5sb2NhbGhvc3Q8L2hvc3Q+DQoJCTx1c2Vy PnRlc3Q8L3VzZXI+DQoJCTxuYW1lPmJ1aWxkczwvbmFtZT4NCjwhLS0JCTxwYXNzd29yZD5FTlRF Ui1TUUwtUEFTU1dPUkQtSEVSRTwvcGFzc3dvcmQ+IC0tPg0KCQk8c3RydWN0dXJlPi91c3IvbG9j YWwvZXRjL2J1aWxkcy1zdHJ1Y3R1cmUuc3FsPC9zdHJ1Y3R1cmU+DQogIDwvZGF0YWJhc2U+DQoN CiAgPGVtYWlsPg0KCTxhZG1pbj5idWlsZC1hZG1pbkBmYnNkLnJ1PC9hZG1pbj4NCgk8cm9ib3Q+ YnVpbGQtbWFpbEBmYnNkLnJ1PC9yb2JvdD4NCgk8cmVwb3J0PnVzZXI8L3JlcG9ydD4NCiAgPC9l bWFpbD4NCg0KICA8bG9nPg0KCTxmaWxlPi92YXIvbG9nL2J1aWxkcy5sb2c8L2ZpbGU+DQoJPGxl dmVsPjEwPC9sZXZlbD4NCiAgPC9sb2c+DQoNCiAgPGRpcmVjdG9yaWVzPg0KCTxtZXRob2RzPi91 c3IvbG9jYWwvbGliL2J1aWxkczwvbWV0aG9kcz4NCiAgPC9kaXJlY3Rvcmllcz4NCjwvYnVpbGRz Pg0K --=-Lnbtxlcmpmbzun/4LkL+ Content-Disposition: attachment; filename=test3.xml Content-Type: text/xml; name=test3.xml; charset=KOI8-R Content-Transfer-Encoding: base64 PGJ1aWxkcz4NCiAgPGRhdGFiYXNlPg0KCQk8aG9zdD5sb2NhbGhvc3Q8L2hvc3Q+DQoJCTx1c2Vy PnRlc3Q8L3VzZXI+DQoJCTxuYW1lPmJ1aWxkczwvbmFtZT4NCjwhLS0JCTxwYXNzd29yZD5FTlRF Ui1TUUwtUEFTU1dPUkQtSEVSRTwvcGFzc3dvcmQ+IC0tPg0KCQk8c3RydWN0dXJlPi91c3IvbG9j YWwvZXRjL2J1aWxkcy1zdHJ1Y3R1cmUuc3FsPC9zdHJ1Y3R1cmU+DQogIDwvZGF0YWJhc2U+DQoN CiAgPGVtYWlsPg0KCTxhZG1pbj5idWlsZC1hZG1pbkBmYnNkLnJ1PC9hZG1pbj4NCgk8cm9ib3Q+ YnVpbGQtbWFpbEBmYnNkLnJ1PC9yb2JvdD4NCgk8cmVwb3J0PnVzZXI8L3JlcG9ydD4NCiAgPC9l bWFpbD4NCg0KICA8ZGlyZWN0b3JpZXM+DQoJPG1ldGhvZHM+L3Vzci9sb2NhbC9saWIvYnVpbGRz PC9tZXRob2RzPg0KICA8L2RpcmVjdG9yaWVzPg0KPC9idWlsZHM+DQo= --=-Lnbtxlcmpmbzun/4LkL+ Content-Disposition: attachment; filename=xpath.pl Content-Type: application/x-perl; name=xpath.pl Content-Transfer-Encoding: base64 dXNlIHN0cmljdDsKCm15ICR0ID0gVGVzdFgtPm5ldyhDb25maWdGaWxlID0+ICRBUkdWWzBdKTsK CmV4aXQoMCk7CgpwYWNrYWdlIFRlc3RYOwoKdXNlIFhNTDo6TGliWE1MOwp1c2UgWE1MOjpMaWJY TUw6OlhQYXRoQ29udGV4dDsKCnVzZSBjb25zdGFudCBEZWZhdWx0Q29uZmlnRmlsZSA9PiAndGVz dC54bWwnOwoKIyBDb25zdHJ1Y3RvcgpzdWIgbmV3KCkKewoJbXkgJHRoaXMgPSBzaGlmdDsKCW15 ICRjbGFzcyA9IHJlZigkdGhpcykgfHwgJHRoaXM7CglteSAkc2VsZiA9IHt9OwoJYmxlc3MgJHNl bGYsICRjbGFzczsKCSRzZWxmLT5pbml0aWFsaXplKEBfKTsKCXJldHVybiAkc2VsZjsKfTsKCiMg c2V0dXAgZGVmYXVsdHMKc3ViIGluaXRpYWxpemUoKQp7CglteSAkc2VsZiA9IHNoaWZ0OwoJbXkg JW9wID0gKAoJCUNvbmZpZ0ZpbGUgPT4gRGVmYXVsdENvbmZpZ0ZpbGUsCgkJQF8KCSk7CgkKCW15 ICRwYXJzZXIgPSBYTUw6OkxpYlhNTC0+bmV3KCk7CglteSAkZG9jID0gJHBhcnNlci0+cGFyc2Vf ZmlsZSggJG9we0NvbmZpZ0ZpbGV9ICkKCSAgCW9yIGRpZSAiRmFpbGVkIHRvIHJlYWQgY29uZmln IGZpbGUgJCE6ICIuJHBhcnNlci0+Z2V0X2xhc3RfZXJyb3IoKS4iXG4iOwoJbXkgJHhjID0gWE1M OjpMaWJYTUw6OlhQYXRoQ29udGV4dC0+bmV3KCRkb2MtPmRvY3VtZW50RWxlbWVudCgpKTsKCXBy aW50ICR4Yy0+ZmluZG5vZGVzKCcvYnVpbGRzL2RhdGFiYXNlL3VzZXInKS0+WzBdLT50b1N0cmlu ZygpLCQvOwoKIwkkc2VsZi0+e2RvY3VtZW50fSA9ICRkb2M7Cn07CgoxOwoK --=-Lnbtxlcmpmbzun/4LkL+-- From K.Buchcik@4commerce.de Thu Oct 13 06:30:20 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6EB913B161A for ; Thu, 13 Oct 2005 06:30:20 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03661-05 for ; Thu, 13 Oct 2005 06:30:18 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 179A03B1051 for ; Thu, 13 Oct 2005 06:30:18 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EQ0Lj-00085B-QU for xml@gnome.org; Thu, 13 Oct 2005 12:30:11 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1EQ0Lj-000855-FN for xml@gnome.org; Thu, 13 Oct 2005 12:30:11 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 13 Oct 2005 12:30:15 +0200 From: Kasimier Buchcik To: ML-libxml2 Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Thu, 13 Oct 2005 12:30:14 +0200 Message-Id: <1129199414.1290.52.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Subject: [xml] Request for XML Schema identity-constraint test cases X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 10:30:20 -0000 Hi, We are currently fixing some XML Schema identity-constraint (IDC) bugs. To help finally closing the IDC issues before the next release: this is a request for contribution of real-live test cases, which involve identity-constaints - the weirder the better. The W3C XML Schema test suite does not cover all real-live scenarios, so your cases will be of great help to discover any lurking bugs. Regards, Kasimier From jesso1607@rogers.com Thu Oct 13 14:36:05 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 232E73B58A9 for ; Thu, 13 Oct 2005 14:36:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05102-03 for ; Thu, 13 Oct 2005 14:36:03 -0400 (EDT) Received: from smtp101.rog.mail.re2.yahoo.com (smtp101.rog.mail.re2.yahoo.com [206.190.36.79]) by menubar.gnome.org (Postfix) with SMTP id 3D7293B58B4 for ; Thu, 13 Oct 2005 14:36:03 -0400 (EDT) Received: (qmail 83230 invoked from network); 13 Oct 2005 18:36:02 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=rogers.com; h=Received:From:To:Subject:Date:User-Agent:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-Disposition:Message-Id; b=zb4MqbdVMtVAFb+eW46LYbZFZVt/ZVoVAk9qUuk0A492b/+xbxT9oqwlBN4nTfwXXoQP9GwlA6JngdfXzmkctGiSIB1t9Ssy//Y94FuEni/WxlDUd/f5SPEn1T7ooSANTVysjXM7VkgEWzulKBDzhiI+kjV5ZSHKzi3M9D1td40= ; Received: from unknown (HELO ?192.168.2.20?) (jesso1607@rogers.com@24.102.109.60 with plain) by smtp101.rog.mail.re2.yahoo.com with SMTP; 13 Oct 2005 18:36:02 -0000 From: Jason Jesso To: xml@gnome.org Date: Thu, 13 Oct 2005 14:35:58 -0400 User-Agent: KMail/1.8.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510131435.58251.jesso1607@rogers.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-3.652 tagged_above=-999 required=2 tests=[BAYES_00, FROM_ENDS_IN_NUMS, RCVD_IN_SORBS, TW_BX, TW_IB] X-Spam-Score: -3.652 X-Spam-Level: Subject: [xml] memory leak? X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 18:36:05 -0000 I was able to build libxml2-2.6.22 on AIX 4.3.3. I wrote a server program that calls a function that uses xml2's XPath functions to get a value for some tag. I monitor the program size with ps -el and see that program size is increasing. When I don't call my function in the server, the program size is constant. Before I exit the function I call the three cleanup functions a part of xml2. i.e. /* Cleanup */ xmlXPathFreeObject( xpathObj ); xmlXPathFreeContext( xpathCtx ); xmlFreeDoc( doc ); I followed http://www.xmlsoft.org/examples/xpath1.c as an example. Can someone suggest something? long int getLogXmlStartTime( const char *xmlbuf ) { int size; long int startTime = -1; xmlNodePtr cur; xmlDocPtr doc; xmlXPathContextPtr xpathCtx; xmlXPathObjectPtr xpathObj; xmlNodeSetPtr nodes; BUGIN1( getLogXmlStartTime, %x, xmlbuf ) /* Load XML document */ doc = xmlParseMemory( xmlbuf, strlen(xmlbuf) ); if ( doc == NULL ){ fprintf( stderr, "Error: unable to parse xml \"%s\"\n", xmlbuf ); BUGRET1( getLogXmlStartTime - unable to parse xml document, %x, -1 ) } /* Create xpath evaluation context */ xpathCtx = xmlXPathNewContext( doc ); if ( xpathCtx == NULL ){ fprintf( stderr, "Error: unable to create new XPath context\n" ); xmlFreeDoc( doc ); BUGRET1( getLogXmlStartTime - unable to create new XPath context, %x, -1 ) } /* Evaluate xpath expression */ xpathObj = xmlXPathEvalExpression( LOG_START_TIME_XPATH_EXPR, xpathCtx ); if ( xpathObj == NULL ){ fprintf( stderr, "Error: unable to evaluate xpath expression \"%s\"\n", LOG_START_TIME_XPATH_EXPR ); xmlXPathFreeContext( xpathCtx ); xmlFreeDoc( doc ); BUGRET1( getLogXmlStartTime - unable to evaluate xpath expression, %x, -1 ) } nodes = xpathObj->nodesetval; size = (nodes) ? nodes->nodeNr : 0; if ( size > 0 ){ cur = nodes->nodeTab[ 0 ]; if ( cur != NULL ) startTime = atoi( cur->content ); } /* Cleanup */ xmlXPathFreeObject( xpathObj ); xmlXPathFreeContext( xpathCtx ); xmlFreeDoc( doc ); BUGRET1( getLogXmlStartTime, %x, startTime ) } From rick.jones2@hp.com Thu Oct 13 16:48:36 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E89643B5A1D for ; Thu, 13 Oct 2005 16:48:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15142-07 for ; Thu, 13 Oct 2005 16:48:33 -0400 (EDT) Received: from palrel11.hp.com (palrel11.hp.com [156.153.255.246]) by menubar.gnome.org (Postfix) with ESMTP id B0EF03B5A0F for ; Thu, 13 Oct 2005 16:48:32 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.56.217]) by palrel11.hp.com (Postfix) with ESMTP id CA12D135 for ; Thu, 13 Oct 2005 13:48:31 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_28810)/8.9.3 SMKit7.02) with ESMTP id NAA23423 for ; Thu, 13 Oct 2005 13:48:31 -0700 (PDT) Message-ID: <434EC81F.5010402@hp.com> Date: Thu, 13 Oct 2005 13:48:31 -0700 From: Rick Jones User-Agent: Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: Subject: [xml] minor typo on the encodings web page X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 20:48:36 -0000 While reading the page on encodings - http://www.xmlsoft.org/encoding.html - I came across a bit that reads "informations about it's encoding are saved" and I suspect it should read "information about it's encoding is saved" instead. rick jones From carlfongheiser@gmail.com Thu Oct 13 16:53:46 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1DB663B1F14 for ; Thu, 13 Oct 2005 16:53:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15664-02 for ; Thu, 13 Oct 2005 16:53:43 -0400 (EDT) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.195]) by menubar.gnome.org (Postfix) with ESMTP id 8A4073B59AF for ; Thu, 13 Oct 2005 16:52:54 -0400 (EDT) Received: by qproxy.gmail.com with SMTP id a16so184036qbd for ; Thu, 13 Oct 2005 13:52:54 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=oqdQG4VtckD1Gvam73i+V3AUxHA8tFdxPPFegt6+42KRYJTzfAGLNL9w8IbaHEBdpCCfYv3/crlpl2IUCkuOeL/8roRfIYH1+Ac0edUkDakxKQ3Gu7R4JWby+1YuQyZvMA4QLLlZr5PeqWQQ2i9RzP9i8UR0OWQfBD1GHVMQQ2U= Received: by 10.64.203.17 with SMTP id a17mr114123qbg; Thu, 13 Oct 2005 13:52:54 -0700 (PDT) Received: by 10.64.233.5 with HTTP; Thu, 13 Oct 2005 13:52:54 -0700 (PDT) Message-ID: <1ba87a1f0510131352s35eecdaehfc72c79e935e3794@mail.gmail.com> Date: Thu, 13 Oct 2005 15:52:54 -0500 From: Carl Fongheiser To: Rick Jones Subject: Re: [xml] minor typo on the encodings web page In-Reply-To: <434EC81F.5010402@hp.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_10807_24054246.1129236774083" References: <434EC81F.5010402@hp.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE] X-Spam-Score: -1.9 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 20:53:46 -0000 ------=_Part_10807_24054246.1129236774083 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On 10/13/05, Rick Jones wrote: > > While reading the page on encodings - http://www.xmlsoft.org/encoding.htm= l- I > came across a bit that reads "informations about it's encoding are saved" > and I > suspect it should read "information about it's encoding is saved" instead= . Really, it should be "information about its encoding is saved". "It's" is a contraction of "it is". The possessive is "its". Carl Fongheiser ------=_Part_10807_24054246.1129236774083 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On 10/13/05, Rick Jones <rick.jone= s2@hp.com> wrote:
While reading the page on encodings - http://www.xmlsoft.org/encoding.html - I
came across a b= it that reads "informations about it's encoding are saved" and I
suspect it should read "information about it's encoding is saved&q= uot; instead.

Really, it should be "information about its encoding is saved".&n= bsp; "It's" is a contraction of "it is".
The possessive is "its".

Carl Fongheiser


------=_Part_10807_24054246.1129236774083-- From rick.jones2@hp.com Thu Oct 13 17:04:22 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B32583B1F73 for ; Thu, 13 Oct 2005 17:04:22 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16222-07 for ; Thu, 13 Oct 2005 17:04:21 -0400 (EDT) Received: from palrel13.hp.com (palrel13.hp.com [156.153.255.238]) by menubar.gnome.org (Postfix) with ESMTP id B9F7A3B08E1 for ; Thu, 13 Oct 2005 17:04:20 -0400 (EDT) Received: from tardy.cup.hp.com (tardy.cup.hp.com [15.244.56.217]) by palrel13.hp.com (Postfix) with ESMTP id 64B781C082AF for ; Thu, 13 Oct 2005 14:03:33 -0700 (PDT) Received: from hp.com (localhost [127.0.0.1]) by tardy.cup.hp.com (8.9.3 (PHNE_28810)/8.9.3 SMKit7.02) with ESMTP id OAA23584 for ; Thu, 13 Oct 2005 14:03:32 -0700 (PDT) Message-ID: <434ECBA4.6080803@hp.com> Date: Thu, 13 Oct 2005 14:03:32 -0700 From: Rick Jones User-Agent: Mozilla/5.0 (X11; U; HP-UX 9000/785; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Subject: Re: [xml] minor typo on the encodings web page References: <434EC81F.5010402@hp.com> <1ba87a1f0510131352s35eecdaehfc72c79e935e3794@mail.gmail.com> In-Reply-To: <1ba87a1f0510131352s35eecdaehfc72c79e935e3794@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Oct 2005 21:04:22 -0000 Carl Fongheiser wrote: > > > On 10/13/05, *Rick Jones* > wrote: > > While reading the page on encodings - > http://www.xmlsoft.org/encoding.html - I > came across a bit that reads "informations about it's encoding are > saved" and I > suspect it should read "information about it's encoding is saved" > instead. > > > Really, it should be "information about its encoding is saved". "It's" > is a contraction of "it is". > The possessive is "its". I was wondering about that one but didn't have the necessary whatevers to say it :) rick jones From nilesh.jain@intel.com Fri Oct 14 14:32:40 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A0AE13B06A4 for ; Fri, 14 Oct 2005 14:32:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05209-01 for ; Fri, 14 Oct 2005 14:32:34 -0400 (EDT) Received: from fmsfmr006.fm.intel.com (fmr16.intel.com [192.55.52.70]) by menubar.gnome.org (Postfix) with ESMTP id A530D3B06AC for ; Fri, 14 Oct 2005 14:32:33 -0400 (EDT) Received: from fmsfmr101.fm.intel.com (fmsfmr101.fm.intel.com [10.253.24.21]) by fmsfmr006.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9EIWXxK031852; Fri, 14 Oct 2005 18:32:33 GMT Received: from fmsmsxvs040.fm.intel.com (fmsmsxvs040.fm.intel.com [132.233.42.124]) by fmsfmr101.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9EIWIJN028620; Fri, 14 Oct 2005 18:32:33 GMT Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148]) by fmsmsxvs040.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101411323216234 ; Fri, 14 Oct 2005 11:32:32 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Fri, 14 Oct 2005 11:32:32 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] Copyright infringment in libxml2 source tarballs Date: Fri, 14 Oct 2005 11:32:29 -0700 Message-ID: <795389EE3D82B947880FBDA87E7F3F96092F5850@fmsmsx408.amr.corp.intel.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] Copyright infringment in libxml2 source tarballs Thread-Index: AcXPMnxVY7mtUejGQd+SePwZuxFKMQBuuCUg From: "Jain, Nilesh" To: , X-OriginalArrivalTime: 14 Oct 2005 18:32:32.0646 (UTC) FILETIME=[A3F47260:01C5D0ED] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.21 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Oct 2005 18:32:40 -0000 >> >> I got this bug report on the Debian BTS. >> >> libxml2 testsuite includes several testfiles that are unclear if they >> are DFSG free. These seem to downloaded from various websites, without >> being aware that typically websited do not allow redistributing their >> content without permissions. >> >> Atleast the following files were spotted to be probably nonfree >material >> >> test/HTML/fp40.htm - Microsoft Frontpage readme file >> test/HTML/wired.html - Wired.com frontpage >> test/HTML/test2.html - Old linuxtoday.com page >> test/slashdot.rdf - slashdot rss feed >> test/slashdot.xml - slashdot rss feed >> test/slashdot16.xml - slashdot rss feed >> test/wap.xml - >> >> While it is an obvious issue for Debian, it is also one for libxml2 >> upstream, that I think you should do something about. > > If you really care about it provide a patch which randomizes the content >of those but keep the structure, it will still test the parser as it should >and I think it would avoid the problem of redistributing the content. I >doubt >one can consider reusing a document structure to be a content copyright >infrigement. > I take patches :-), it will of course also affect the structure. What about the rest of test file, are they licensed under MIT same as libxml2?=20 From james.eggleston@vega.de Mon Oct 17 07:32:45 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B84973B3260 for ; Mon, 17 Oct 2005 07:32:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 17205-02 for ; Mon, 17 Oct 2005 07:32:39 -0400 (EDT) Received: from lunkwill.vega.de (lunkwill.vega.de [213.157.29.8]) by menubar.gnome.org (Postfix) with ESMTP id C376A3B3290 for ; Mon, 17 Oct 2005 07:30:34 -0400 (EDT) Received: from zaphod.vegagroup.net (zaphod.vega.de [172.20.200.2]) by lunkwill.vega.de (8.12.11/8.12.11) with ESMTP id j9HBSxYv024839 for ; Mon, 17 Oct 2005 12:29:02 +0100 Received: from hactar.vegagroup.net ([172.18.200.2]) by zaphod.vegagroup.net with Microsoft SMTPSVC(6.0.3790.1830); Mon, 17 Oct 2005 13:29:42 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: [xml] xmlTextWriterWriteFormatElement problem Date: Mon, 17 Oct 2005 13:29:42 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] Copyright infringment in libxml2 source tarballs Thread-Index: AcXPMnxVY7mtUejGQd+SePwZuxFKMQBuuCUgAIfdvgA= From: "James Eggleston" To: X-OriginalArrivalTime: 17 Oct 2005 11:29:42.0482 (UTC) FILETIME=[1165E320:01C5D30E] X-VEGA-MailScanner-Information: Please contact GroupIS for more information X-VEGA-MailScanner: Found to be clean X-MailScanner-From: james.eggleston@vega.de X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.9 tagged_above=-999 required=2 tests=[BAYES_00] X-Spam-Score: -4.9 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 11:32:45 -0000 Hi everyone, Just to follow up my post from last month (I've been on holiday!) = regarding a problem with the xmlTextWriterWriteFormatElement call = causing a seg fault when writing strings longer than 8191 characters... = * the code provided was just an example to highlight the problem with = 8192 bytes - the real code needs to handle longer strings and tidies up = after itself * the code provided by Alfred Mickautsch worked fine on my machine... so = no problem with the vsnprintf() or glibc (probably!) * passing 8191 or less bytes worked fine - however the strings being = written could be any size, so our code has to be able to handle = longer...=20 In the end, I altered our code to split any length string up into chunks = of a suitable length before saving to disk and reconstitute the original = string on reloading. Not ideal, but it worked.=20 Many thanks to all those who offered help and spent time investigating = the problem... sorry I wasn't able to add anything constructive to the = cause.=20 James.=20 From veillard@redhat.com Mon Oct 17 11:22:13 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6B1643B34EE for ; Mon, 17 Oct 2005 11:22:13 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04240-05 for ; Mon, 17 Oct 2005 11:22:11 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 486F13B3331 for ; Mon, 17 Oct 2005 11:22:08 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9HFM6hc004274; Mon, 17 Oct 2005 11:22:06 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9HFM1V08610; Mon, 17 Oct 2005 11:22:01 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9HFM1jZ030996; Mon, 17 Oct 2005 11:22:01 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9HFLugX030957; Mon, 17 Oct 2005 11:21:56 -0400 Date: Mon, 17 Oct 2005 11:21:56 -0400 From: Daniel Veillard To: James Eggleston Subject: Re: [xml] xmlTextWriterWriteFormatElement problem Message-ID: <20051017152156.GC26297@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 15:22:14 -0000 On Mon, Oct 17, 2005 at 01:29:42PM +0200, James Eggleston wrote: > Hi everyone, > > Just to follow up my post from last month (I've been on holiday!) regarding a problem with the xmlTextWriterWriteFormatElement call causing a seg fault when writing strings longer than 8191 characters... > > * the code provided was just an example to highlight the problem with 8192 bytes - the real code needs to handle longer strings and tidies up after itself > * the code provided by Alfred Mickautsch worked fine on my machine... so no problem with the vsnprintf() or glibc (probably!) > * passing 8191 or less bytes worked fine - however the strings being written could be any size, so our code has to be able to handle longer... > > In the end, I altered our code to split any length string up into chunks of a suitable length before saving to disk and reconstitute the original string on reloading. Not ideal, but it worked. > > Many thanks to all those who offered help and spent time investigating the problem... sorry I wasn't able to add anything constructive to the cause. Hum ... I'm unclear, I can't remember clearly ? Did this ended up being a bug in libxml2 ? Was that bug fixed ? If yes and no then this must be bugzilla'ed so hopefully this get fixed. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Mon Oct 17 11:24:11 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 77E5E3B3537 for ; Mon, 17 Oct 2005 11:24:09 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04506-05 for ; Mon, 17 Oct 2005 11:24:08 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 7F9E63B0E91 for ; Mon, 17 Oct 2005 11:23:09 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9HFN95h004711; Mon, 17 Oct 2005 11:23:09 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9HFN9V09056; Mon, 17 Oct 2005 11:23:09 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9HFN8dY031507; Mon, 17 Oct 2005 11:23:08 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9HFN8IX031505; Mon, 17 Oct 2005 11:23:08 -0400 Date: Mon, 17 Oct 2005 11:23:08 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] Copyright infringment in libxml2 source tarballs Message-ID: <20051017152308.GD26297@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F96092F5850@fmsmsx408.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <795389EE3D82B947880FBDA87E7F3F96092F5850@fmsmsx408.amr.corp.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 15:24:11 -0000 On Fri, Oct 14, 2005 at 11:32:29AM -0700, Jain, Nilesh wrote: > What about the rest of test file, are they licensed under MIT same as > libxml2? yes I expect so, as they are tests I made or which were provided to the project. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From manishmarathe@gmail.com Mon Oct 17 13:48:32 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 61F7B3B0B9A for ; Mon, 17 Oct 2005 13:48:32 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18407-03 for ; Mon, 17 Oct 2005 13:48:31 -0400 (EDT) Received: from qproxy.gmail.com (qproxy.gmail.com [72.14.204.192]) by menubar.gnome.org (Postfix) with ESMTP id 8B3003B0E54 for ; Mon, 17 Oct 2005 13:48:30 -0400 (EDT) Received: by qproxy.gmail.com with SMTP id i38so1226849qbh for ; Mon, 17 Oct 2005 10:48:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=JaNlUoISBaB8iRrmLLTdpbxuKS6qSMDdpsAxiqHla3NcC1xY5EnSixwrAk8eSX7/GMuJJ3F83RmqKMalJOV5CzHF3CMA6fGka0Xesl82C8Zvc/3UxCxo2mubTYQMoPmbB3vuzyFfk6akjJPVP0q1Dj7PCzycr+xGIHaX/AGP1EQ= Received: by 10.64.156.15 with SMTP id d15mr2214195qbe; Mon, 17 Oct 2005 10:48:29 -0700 (PDT) Received: by 10.64.185.5 with HTTP; Mon, 17 Oct 2005 10:48:29 -0700 (PDT) Message-ID: <4e04cadb0510171048o6aef80earabc2c6a86d666785@mail.gmail.com> Date: Mon, 17 Oct 2005 10:48:29 -0700 From: Manish Marathe To: xml@gnome.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38545_19898002.1129571309900" X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00, HTML_MESSAGE, TW_BX, TW_IB] X-Spam-Score: -1.746 X-Spam-Level: Subject: [xml] libxml2 test results X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 17:48:32 -0000 ------=_Part_38545_19898002.1129571309900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello All, Thanks for the help in advance. I ran tests for libxml with test-target testall like $ make testall I got the output. I am not able to interpret the results like how many test= s were executed, how many passed, how many failed, how many skipped. Do the results get stored some where else ? Thanks -Manish ------=_Part_38545_19898002.1129571309900 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hello All,

Thanks for the help in advance.

I ran tests for libxml with test-target testall like

$ make testall

I got the output. I am not able to interpret the results like how many tests were executed, how many passed, how many failed, how many skipped. Do the results get stored some where else ?

Thanks

-Manish
------=_Part_38545_19898002.1129571309900-- From veillard@redhat.com Mon Oct 17 14:15:00 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E784B3B0D6E for ; Mon, 17 Oct 2005 14:14:59 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20522-05 for ; Mon, 17 Oct 2005 14:14:58 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 40F603B0830 for ; Mon, 17 Oct 2005 14:14:54 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9HIEqvc002226; Mon, 17 Oct 2005 14:14:52 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9HIEqV03492; Mon, 17 Oct 2005 14:14:52 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9HIEqqK026582; Mon, 17 Oct 2005 14:14:52 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9HIEpVI026580; Mon, 17 Oct 2005 14:14:51 -0400 Date: Mon, 17 Oct 2005 14:14:51 -0400 From: Daniel Veillard To: Manish Marathe Subject: Re: [xml] libxml2 test results Message-ID: <20051017181451.GI26297@redhat.com> References: <4e04cadb0510171048o6aef80earabc2c6a86d666785@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e04cadb0510171048o6aef80earabc2c6a86d666785@mail.gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 18:15:00 -0000 On Mon, Oct 17, 2005 at 10:48:29AM -0700, Manish Marathe wrote: > Hello All, > > Thanks for the help in advance. > > I ran tests for libxml with test-target testall like > > $ make testall > > I got the output. I am not able to interpret the results like how many tests > were executed, how many passed, how many failed, how many skipped. > Do the results get stored some where else ? run runtest manually ... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From mmarathe@spikesource.com Mon Oct 17 15:43:02 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 963683B2FA3 for ; Mon, 17 Oct 2005 15:43:02 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28495-05 for ; Mon, 17 Oct 2005 15:43:01 -0400 (EDT) Received: from mail.spikesource.com (gw1-ss-fe0.spikesource.com [209.10.209.56]) by menubar.gnome.org (Postfix) with ESMTP id 0C2C43B368D for ; Mon, 17 Oct 2005 15:42:58 -0400 (EDT) Received: from caledon.spikesource.com (caledon.spikesource.com [::ffff:172.16.20.172]) by mail.spikesource.com with esmtp; Mon, 17 Oct 2005 12:42:55 -0700 id 0033CA9E.4353FEC0.0000146D Subject: Re: [xml] libxml2 test results From: Manish Marathe To: Daniel Veillard Organization: SpikeSource, Inc. Date: Mon, 17 Oct 2005 12:42:52 -0700 Message-Id: <1129578172.699.64.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mmarathe@spikesource.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 19:43:02 -0000 On 10/17/05, Daniel Veillard wrote: On Mon, Oct 17, 2005 at 11:21:15AM -0700, Manish Marathe wrote: > On 10/17/05, Daniel Veillard wrote: > > > > On Mon, Oct 17, 2005 at 10:48:29AM -0700, Manish Marathe wrote: > > > Hello All, > > > > > > Thanks for the help in advance. > > > > > > I ran tests for libxml with test-target testall like > > > > > > $ make testall > > > > > > I got the output. I am not able to interpret the results like how > > > many tests > > > were executed, how many passed, how many failed, how many skipped. > > > Do the results get stored some where else ? > > > > run runtest manually ... > > > >Well I am trying to automate the process of building libxml2 along > >with tests and code-coverage and I am sorry I didn't understand what > >you mean by run runtest manually. > Other things : > - if you work for spikesources.com why hide your email >address behind > a gmail account. I take this as a negative feedback on >future exchange > with your company > - If the goal is really to "make open-source more reliable >and safe", > I'm a bit worried by the content of your private answer >too. > - use the mailing list for any exchanges related to libxml2 > thanks in advance, >Daniel Well, Yes I do work for SpikeSource, Inc and I am sorry but I didn't mean in any way to hide my identity by using a gmail account. My only intention was to keep email archive of libxml seperate from the company inbox, which can be accessed from anywhere even If I don't have VPN outside and also mails in gmail are grouped thread wise and also its easy to search on gmail. Hope u would agree to that. Anyway I have registered again with my SpikeSource ID. Thanks to let me know what you felt. By the way here is what I did. In libxml/2.6.19/src/ dir I did: $ ./configure --prefix=/opt/dev $ make I couldn't see any runtest script any where. Do I have an older version of libxml ? -Manish From veillard@redhat.com Mon Oct 17 15:48:43 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A75183B374A for ; Mon, 17 Oct 2005 15:48:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28752-07 for ; Mon, 17 Oct 2005 15:48:42 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0D6BA3B36C7 for ; Mon, 17 Oct 2005 15:48:42 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9HJmfhI003811; Mon, 17 Oct 2005 15:48:41 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9HJmfV07987; Mon, 17 Oct 2005 15:48:41 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9HJmf5e029987; Mon, 17 Oct 2005 15:48:41 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9HJmbrr029950; Mon, 17 Oct 2005 15:48:37 -0400 Date: Mon, 17 Oct 2005 15:48:36 -0400 From: Daniel Veillard To: Manish Marathe Subject: Re: [xml] libxml2 test results Message-ID: <20051017194836.GN26297@redhat.com> References: <1129578172.699.64.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129578172.699.64.camel@caledon.spikesource.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 19:48:43 -0000 On Mon, Oct 17, 2005 at 12:42:52PM -0700, Manish Marathe wrote: > Well, Yes I do work for SpikeSource, Inc and I am sorry but I didn't > mean in any way to hide my identity by using a gmail account. My only Okay :-) > By the way here is what I did. In libxml/2.6.19/src/ dir I did: > > $ ./configure --prefix=/opt/dev > $ make > > I couldn't see any runtest script any where. > > Do I have an older version of libxml ? yes, http://xmlsoft.org/news.html lot of work on the automated testing of the library went into 2.6.20 current is 2.6.22 from last month. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From mmarathe@spikesource.com Mon Oct 17 16:08:24 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C1983B0C79 for ; Mon, 17 Oct 2005 16:08:24 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30275-04 for ; Mon, 17 Oct 2005 16:08:23 -0400 (EDT) Received: from mail.spikesource.com (gw1-ss-fe0.spikesource.com [209.10.209.56]) by menubar.gnome.org (Postfix) with ESMTP id A75723B3774 for ; Mon, 17 Oct 2005 16:08:22 -0400 (EDT) Received: from caledon.spikesource.com (caledon.spikesource.com [::ffff:172.16.20.172]) by mail.spikesource.com with esmtp; Mon, 17 Oct 2005 13:08:22 -0700 id 0033CC3B.435404B6.00002364 Subject: Re: [xml] libxml2 test results From: Manish Marathe To: Daniel Veillard In-Reply-To: <20051017194836.GN26297@redhat.com> References: <1129578172.699.64.camel@caledon.spikesource.com> <20051017194836.GN26297@redhat.com> Organization: SpikeSource, Inc. Date: Mon, 17 Oct 2005 13:08:21 -0700 Message-Id: <1129579701.699.68.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mmarathe@spikesource.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 20:08:24 -0000 On Mon, 2005-10-17 at 15:48 -0400, Daniel Veillard wrote: > > yes, http://xmlsoft.org/news.html > lot of work on the automated testing of the library went into 2.6.20 > current is 2.6.22 from last month. > > Daniel Thank You, that helped, although I am getting following error: /tmp/libxml2-2.6.22/.libs/lt-runtest: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory I understand that I can run tests using Makefile.tests too. From veillard@redhat.com Mon Oct 17 16:15:28 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DE9103B0EAF for ; Mon, 17 Oct 2005 16:15:27 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30597-09 for ; Mon, 17 Oct 2005 16:15:26 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 1D3F53B1004 for ; Mon, 17 Oct 2005 16:15:26 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9HKFLCA012730; Mon, 17 Oct 2005 16:15:21 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9HKFGV16695; Mon, 17 Oct 2005 16:15:16 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9HKFGdB009879; Mon, 17 Oct 2005 16:15:16 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9HKFC7T009865; Mon, 17 Oct 2005 16:15:12 -0400 Date: Mon, 17 Oct 2005 16:15:11 -0400 From: Daniel Veillard To: Manish Marathe Subject: Re: [xml] libxml2 test results Message-ID: <20051017201511.GO26297@redhat.com> References: <1129578172.699.64.camel@caledon.spikesource.com> <20051017194836.GN26297@redhat.com> <1129579701.699.68.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129579701.699.68.camel@caledon.spikesource.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 20:15:28 -0000 On Mon, Oct 17, 2005 at 01:08:21PM -0700, Manish Marathe wrote: > On Mon, 2005-10-17 at 15:48 -0400, Daniel Veillard wrote: > > > > yes, http://xmlsoft.org/news.html > > lot of work on the automated testing of the library went into 2.6.20 > > current is 2.6.22 from last month. > > > > Daniel > > Thank You, that helped, although I am getting following error: > > /tmp/libxml2-2.6.22/.libs/lt-runtest: error while loading shared > libraries: libiconv.so.2: cannot open shared object file: No such file > or directory that's not related to libxml2 you have a configuration problem, really. you can try to "configure --without-shared" to avoid shared libs issues but you should really fix this ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From mmarathe@spikesource.com Mon Oct 17 18:02:04 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 09E093B1109 for ; Mon, 17 Oct 2005 18:02:04 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 06023-09 for ; Mon, 17 Oct 2005 18:02:02 -0400 (EDT) Received: from mail.spikesource.com (gw1-ss-fe0.spikesource.com [209.10.209.56]) by menubar.gnome.org (Postfix) with ESMTP id 551F73B37B5 for ; Mon, 17 Oct 2005 18:02:01 -0400 (EDT) Received: from caledon.spikesource.com (caledon.spikesource.com [::ffff:172.16.20.172]) by mail.spikesource.com with esmtp; Mon, 17 Oct 2005 15:02:00 -0700 id 0006074C.43541F58.00007008 Subject: Re: [xml] libxml2 test results From: Manish Marathe To: Daniel Veillard In-Reply-To: <20051017201511.GO26297@redhat.com> References: <1129578172.699.64.camel@caledon.spikesource.com> <20051017194836.GN26297@redhat.com> <1129579701.699.68.camel@caledon.spikesource.com> <20051017201511.GO26297@redhat.com> Organization: SpikeSource, Inc. Date: Mon, 17 Oct 2005 15:02:00 -0700 Message-Id: <1129586520.5108.2.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mmarathe@spikesource.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2005 22:02:04 -0000 On Mon, 2005-10-17 at 16:15 -0400, Daniel Veillard wrote: > > /tmp/libxml2-2.6.22/.libs/lt-runtest: error while loading shared > > libraries: libiconv.so.2: cannot open shared object file: No such file > > or directory > > that's not related to libxml2 you have a configuration problem, really. > you can try to "configure --without-shared" to avoid shared libs issues > but you should really fix this ! Well i tried configuring that using --without-shared option but still after running ./runtest it shouts for not been able to load libxml2.so.2 from the .libs directory. Also libxml2.so.2 is a symbolic link tlibxml2.so.2 -> libxml2.so.2.6.22 Any more suggestions how can I fix this? From mmarathe@spikesource.com Mon Oct 17 20:47:45 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A29D43B396C for ; Mon, 17 Oct 2005 20:47:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15579-09 for ; Mon, 17 Oct 2005 20:47:44 -0400 (EDT) Received: from mail.spikesource.com (gw1-ss-fe0.spikesource.com [209.10.209.56]) by menubar.gnome.org (Postfix) with ESMTP id 814F73B3974 for ; Mon, 17 Oct 2005 20:47:43 -0400 (EDT) Received: from caledon.spikesource.com (caledon.spikesource.com [::ffff:172.16.20.172]) by mail.spikesource.com with esmtp; Mon, 17 Oct 2005 17:47:42 -0700 id 0030CE11.4354462E.00004972 Subject: Re: [xml] libxml2 test results From: Manish Marathe To: Daniel Veillard In-Reply-To: <20051017201511.GO26297@redhat.com> References: <1129578172.699.64.camel@caledon.spikesource.com> <20051017194836.GN26297@redhat.com> <1129579701.699.68.camel@caledon.spikesource.com> <20051017201511.GO26297@redhat.com> Organization: SpikeSource, Inc. Date: Mon, 17 Oct 2005 17:47:42 -0700 Message-Id: <1129596462.5108.5.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: XML Group X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mmarathe@spikesource.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 00:47:45 -0000 On Mon, 2005-10-17 at 16:15 -0400, Daniel Veillard wrote: > On Mon, Oct 17, 2005 at 01:08:21PM -0700, Manish Marathe wrote: > > On Mon, 2005-10-17 at 15:48 -0400, Daniel Veillard wrote: > > > > > > yes, http://xmlsoft.org/news.html > > > lot of work on the automated testing of the library went into 2.6.20 > > > current is 2.6.22 from last month. > > > > > > Daniel > > > > Thank You, that helped, although I am getting following error: > > > > /tmp/libxml2-2.6.22/.libs/lt-runtest: error while loading shared > > libraries: libiconv.so.2: cannot open shared object file: No such file > > or directory > > that's not related to libxml2 you have a configuration problem, really. > you can try to "configure --without-shared" to avoid shared libs issues > but you should really fix this ! > I re-installed libiconv with ./configure --without-shared option for the configure script of libiconv and then re-installed libxml2 and ran tests. Now ./runtest works along with ./runsuite and ./testapi. Thanks for that hint. Also Can I add-up the total tests from all three of them (runtest, runsuite and testapi) to get a final total number of tests executed, total passed, total failed etc... ? From james.eggleston@vega.de Tue Oct 18 03:32:35 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 537B23B0C4F for ; Tue, 18 Oct 2005 03:32:35 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07509-03 for ; Tue, 18 Oct 2005 03:32:33 -0400 (EDT) Received: from lunkwill.vega.de (lunkwill.vega.de [213.157.29.8]) by menubar.gnome.org (Postfix) with ESMTP id CAC0D3B1038 for ; Tue, 18 Oct 2005 03:32:30 -0400 (EDT) Received: from zaphod.vegagroup.net (zaphod.vega.de [172.20.200.2]) by lunkwill.vega.de (8.12.11/8.12.11) with ESMTP id j9I7Us31019741; Tue, 18 Oct 2005 08:30:54 +0100 Received: from hactar.vegagroup.net ([172.18.200.2]) by zaphod.vegagroup.net with Microsoft SMTPSVC(6.0.3790.1830); Tue, 18 Oct 2005 09:31:38 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [xml] xmlTextWriterWriteFormatElement problem Date: Tue, 18 Oct 2005 09:31:37 +0200 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [xml] xmlTextWriterWriteFormatElement problem Thread-Index: AcXTLnawOX08FbvoTUSzKizInFELWAAhqu+Q From: "James Eggleston" To: X-OriginalArrivalTime: 18 Oct 2005 07:31:38.0315 (UTC) FILETIME=[F9C8B9B0:01C5D3B5] X-VEGA-MailScanner-Information: Please contact GroupIS for more information X-VEGA-MailScanner: Found to be clean X-MailScanner-From: james.eggleston@vega.de X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 07:32:35 -0000 The answers are: Did this ended up being a bug in libxml2 ?=20 Yes, but apparently only our system configuration - we have a problem in = xmlTextWriterWriteFormatElement when strings longer than 8191 chars are = written - but everyone else who tried it couldn't recreate the = problem... hmmm... I can feel the suspicious looks in my direction... :) = Was that bug fixed ?=20 No - it wasn't fixed - I implemented a work around in our code. Would you still like me to raise the issue on bugzilla?=20 James. -----Original Message----- From: Daniel Veillard [mailto:veillard@redhat.com] Sent: 17 October 2005 17:22 To: James Eggleston Cc: xml@gnome.org Subject: Re: [xml] xmlTextWriterWriteFormatElement problem On Mon, Oct 17, 2005 at 01:29:42PM +0200, James Eggleston wrote: > Hi everyone, >=20 > Just to follow up my post from last month (I've been on holiday!) = regarding a problem with the xmlTextWriterWriteFormatElement call = causing a seg fault when writing strings longer than 8191 characters... = >=20 > * the code provided was just an example to highlight the problem with = 8192 bytes - the real code needs to handle longer strings and tidies up = after itself > * the code provided by Alfred Mickautsch worked fine on my machine... = so no problem with the vsnprintf() or glibc (probably!) > * passing 8191 or less bytes worked fine - however the strings being = written could be any size, so our code has to be able to handle = longer...=20 >=20 > In the end, I altered our code to split any length string up into = chunks of a suitable length before saving to disk and reconstitute the = original string on reloading. Not ideal, but it worked.=20 >=20 > Many thanks to all those who offered help and spent time investigating = the problem... sorry I wasn't able to add anything constructive to the = cause.=20 Hum ... I'm unclear, I can't remember clearly ? Did this ended up = being a bug in libxml2 ? Was that bug fixed ? If yes and no then this must be bugzilla'ed so hopefully this get fixed. Daniel --=20 Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit = http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From oliverst@online.de Tue Oct 18 06:53:05 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 64E353B18A9 for ; Tue, 18 Oct 2005 06:53:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23197-05 for ; Tue, 18 Oct 2005 06:53:02 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.173]) by menubar.gnome.org (Postfix) with ESMTP id 222913B1D40 for ; Tue, 18 Oct 2005 06:50:59 -0400 (EDT) Received: from [212.227.126.200] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERp3a-000290-00 for xml@gnome.org; Tue, 18 Oct 2005 12:50:58 +0200 Received: from [172.23.4.156] (helo=pustefix156.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERp3a-0008Rw-00 for xml@gnome.org; Tue, 18 Oct 2005 12:50:58 +0200 Message-Id: <11477918.165051129632658273.JavaMail.servlet@kundenserver> From: oliverst@online.de To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 5074873 X-Routing: DE X-Message-Id: <5074873$1129632658273172.23.4.15630430695@pustefix156.kundenserver.de-1636806311> X-Received: from pustefix156.kundenserver.de by 206.253.224.132 with HTTP id 5074873 for [xml@gnome.org]; Tue, 18 Oct 2005 12:50:58 CEST Date: Tue, 18 Oct 2005 12:50:58 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.156 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.74 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME] X-Spam-Score: -4.74 X-Spam-Level: Subject: [xml] problem linking static library with MinGW X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 10:53:05 -0000 When I try to link the static library with MinGW I get the following error: [Linker error] undefined reference to `_imp__xmlFree' I configured the library like this: cscript configure.js xml_debug=no debug=no mem_debug=no static=yes iconv=no schemas=no regexps=no docb=no threads=native ftp=no http=no reader=no walker=no legacy=no xpath=yes xptr=no catalog=no xinclude=no c14n=no writer=no walker=no push=no pattern=no schematron=no modules=no compiler=mingw From oliverst@online.de Tue Oct 18 07:16:50 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E9CB3B18A3 for ; Tue, 18 Oct 2005 07:16:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25533-01 for ; Tue, 18 Oct 2005 07:16:48 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by menubar.gnome.org (Postfix) with ESMTP id 4DA7E3B1847 for ; Tue, 18 Oct 2005 07:16:46 -0400 (EDT) Received: from [212.227.126.202] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERpSW-0006KP-00 for xml@gnome.org; Tue, 18 Oct 2005 13:16:44 +0200 Received: from [172.23.4.157] (helo=pustefix157.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERpSW-0003bV-00 for xml@gnome.org; Tue, 18 Oct 2005 13:16:44 +0200 Message-Id: <13583155.910821129634204336.JavaMail.servlet@kundenserver> From: oliverst@online.de To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 5074873 X-Routing: DE X-Message-Id: <5074873$1129634204336172.23.4.1575398904@pustefix157.kundenserver.de-1378511042> X-Received: from pustefix157.kundenserver.de by 206.253.224.132 with HTTP id 5074873 for [xml@gnome.org]; Tue, 18 Oct 2005 13:16:44 CEST Date: Tue, 18 Oct 2005 13:16:44 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.157 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-3.233 tagged_above=-999 required=2 tests=[BAYES_00, NO_EXPERIENCE, NO_REAL_NAME, TW_BX, TW_IB] X-Spam-Score: -3.233 X-Spam-Level: Subject: [xml] xmllint problems X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 11:16:50 -0000 When I run xmllint with "--valid" or "--postvalid" it does crash when using the XML output of MAME as input (http://www.breaken.de/temp/output.xml). I am also having a problem to properly parse it. I don't get the "mame" node as root node, but a node below it and the "mame" node has no children at all. Guess it is because of the DTD, because when I remove it, it does work. I have absolutely no experience with DTDs, so maybe you can point out the problem. xmllint also says, that "--c14n" and "--exc-c14n" is an "Unknown option". IMO it should say, that c14n is not compiled in. This should also be the case for the other options, that are compile flag dependent. I am using libxml2-2.6.22 buld with MinGW. Configured like this: cscript configure.js xml_debug=no debug=no mem_debug=no static=yes iconv=no schemas=no regexps=no docb=no threads=native ftp=no http=no reader=no walker=no legacy=no xpath=yes xptr=no catalog=no xinclude=no c14n=no writer=no walker=no push=no pattern=no schematron=no modules=no compiler=mingw From K.Buchcik@4commerce.de Tue Oct 18 08:20:25 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B9E283B18B3 for ; Tue, 18 Oct 2005 08:20:25 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30816-06 for ; Tue, 18 Oct 2005 08:20:23 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 9DBD73B14A8 for ; Tue, 18 Oct 2005 08:20:22 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERqSY-000199-My; Tue, 18 Oct 2005 14:20:50 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERqSX-000193-1b; Tue, 18 Oct 2005 14:20:50 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 18 Oct 2005 14:20:19 +0200 From: Kasimier Buchcik To: oliverst@online.de In-Reply-To: <13583155.910821129634204336.JavaMail.servlet@kundenserver> References: <13583155.910821129634204336.JavaMail.servlet@kundenserver> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 18 Oct 2005 14:20:19 +0200 Message-Id: <1129638019.1292.10.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: [xml] xmllint problems X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 12:20:26 -0000 On Tue, 2005-10-18 at 13:16 +0200, oliverst@online.de wrote: > When I run xmllint with "--valid" or "--postvalid" it does crash when using the XML output of MAME as input (http://www.breaken.de/temp/output.xml). Cannot reproduce the crash on my Debian (sarge) box: kbu@librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml output.xml:143: element driver: validity error : No declaration for attribute savestate of element driver color="good" sound="good" graphic="good" savestate="supported" palettesize="32" [... some hundreds of validation errors...] kbu@librax:/data/home/kbuchcik/temp$ xmllint --version xmllint: using libxml version 20622-CVS2645 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude IconvISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug MemDebug RunDebug Same with the --postvalid option. [...] Regards, Kasimier From wbrack@mmm.com.hk Tue Oct 18 08:41:29 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 084E83B0DDB for ; Tue, 18 Oct 2005 08:41:29 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31841-10 for ; Tue, 18 Oct 2005 08:41:27 -0400 (EDT) Received: from delightful.com.hk (adsl-63-204-84-206.dsl.sktn01.pacbell.net [63.204.84.206]) by menubar.gnome.org (Postfix) with ESMTP id 854F43B0C41 for ; Tue, 18 Oct 2005 08:41:23 -0400 (EDT) Received: from delightful.com.hk (localhost [127.0.0.1]) by delightful.com.hk (8.13.3/8.13.1) with ESMTP id j9ICZMsd018500; Tue, 18 Oct 2005 05:35:22 -0700 Received: from 218.102.243.28 (SquirrelMail authenticated user wbrack) by www.delightful.com.hk with HTTP; Tue, 18 Oct 2005 20:35:22 +0800 (HKT) Message-ID: <50029.218.102.243.28.1129638922.squirrel@www.delightful.com.hk> In-Reply-To: References: Date: Tue, 18 Oct 2005 20:35:22 +0800 (HKT) Subject: RE: [xml] xmlTextWriterWriteFormatElement problem From: "William M. Brack" To: "James Eggleston" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-3.534 tagged_above=-999 required=2 tests=[BAYES_00, PRIORITY_NO_NAME, TW_BX, TW_IB] X-Spam-Score: -3.534 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 12:41:29 -0000 James Eggleston said: > The answers are: > > Did this ended up being a bug in libxml2 ? > Yes, but apparently only our system configuration - we have a problem in > xmlTextWriterWriteFormatElement when strings longer than 8191 chars are > written - but everyone else who tried it couldn't recreate the problem... > hmmm... I can feel the suspicious looks in my direction... :) Tut, tut.... have a little confidence in your peers :-). > > Was that bug fixed ? > No - it wasn't fixed - I implemented a work around in our code. > > Would you still like me to raise the issue on bugzilla? > > James. I saw the original post, but didn't actually try out your xmlProblem.cpp, since others were looking at it, and I hoped that a solution would be found. Besides, this one wasn't very easy. When I compiled and ran your program on my 32-bit system, I got: bill@billsuper ~/gnomecvs/work $ ./xmlProblem bill@billsuper ~/gnomecvs/work $ (i.e. no problem). But when I did exactly the same thing on a 64-bit system, I got: bill@bbsf ~/gnomecvs/work $ ./xmlProblem Segmentation fault bill@bbsf ~/gnomecvs/work $ So, I ran Valgrind on the program to check for memory access problems. Same thing - 32-bit system found no problem, 64-bit system found trouble. I looked into the code, and *think* I have found what's causing the problem. It concerns variable-length arguments and va_xxx routines (specifically, line 4385 of the current CVS). I also *think* I have a fix for it (which involves va_copy), but (most unfortunately) it's not too simple, because va_copy may not be present on all systems, so changes to the configure script may be necessary. It would be best if you would bugzilla it, which will assure it gets resolved. It will also assure that you will be notified as soon as the problem is fixed. Regards, Bill From oliverst@online.de Tue Oct 18 08:43:21 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 631143B18C7 for ; Tue, 18 Oct 2005 08:43:21 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31967-09 for ; Tue, 18 Oct 2005 08:43:19 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.190]) by menubar.gnome.org (Postfix) with ESMTP id 32FCB3B18B3 for ; Tue, 18 Oct 2005 08:43:15 -0400 (EDT) Received: from [212.227.126.203] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERqoE-0006Qm-00 for xml@gnome.org; Tue, 18 Oct 2005 14:43:14 +0200 Received: from [172.23.4.159] (helo=pustefix159.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERqoE-0007lw-00 for xml@gnome.org; Tue, 18 Oct 2005 14:43:14 +0200 Message-Id: <11132301.547411129639394158.JavaMail.servlet@kundenserver> From: oliverst@online.de To: Subject: AW: Re: [xml] xmllint problems MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 5074873 X-Routing: DE X-Message-Id: <5074873$1129639394157172.23.4.15931239576@pustefix159.kundenserver.de-716369134> X-Received: from pustefix159.kundenserver.de by 206.253.224.132 with HTTP id 5074873 for [xml@gnome.org]; Tue, 18 Oct 2005 14:43:14 CEST Date: Tue, 18 Oct 2005 14:43:14 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.159 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.74 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME] X-Spam-Score: -4.74 X-Spam-Level: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 12:43:21 -0000 > >On Tue, 2005-10-18 at 13:16 +0200, oliverst@online.de wrote: >> When I run xmllint with "--valid" or "--postvalid" it does crash when using >the XML output of MAME as input (http://www.breaken.de/temp/output.xml). > >Cannot reproduce the crash on my Debian (sarge) box: > >kbu@librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml >output.xml:143: element driver: validity error : No declaration for >attribute savestate of element driver > color="good" sound="good" graphic="good" savestate="supported" >palettesize="32" >[... some hundreds of validation errors...] > > This is happening because of a missing DTD entry. Add this to the DTD before the "palettesize" entry and those warnings should go away. I just compiled a debug version and here is the backtrace: Starting program: C:\libxml2-2.6.22\win32\bin.mingw/xmllint.exe --valid C:/Dev-C pp/Projects/libxml_test/output_orig.xml Program received signal SIGSEGV, Segmentation fault. 0x1005844f in xmlValidateElementType (ctxt=0x3f45e4) at ../valid.c:4712 4712 if ((CONT != NULL) && (gdb) bt #0 0x1005844f in xmlValidateElementType (ctxt=0x3f45e4) at ../valid.c:4712 #1 0x10059228 in xmlValidateElementContent (ctxt=0x3f45e4, child=0x548750, elemDecl=0x540480, warn=1, parent=0x5485a0) at ../valid.c:5248 #2 0x1005a437 in xmlValidateOneElement (ctxt=0x3f45e4, doc=0x3f8b20, elem=0x5485a0) at ../valid.c:6052 #3 0x1003cf09 in xmlSAX2EndElementNs (ctx=0x3f4578, localname=0x3f86fa "dipswitch", prefix=0x0, URI=0x0) at ../SAX2.c:2311 #4 0x1002e7d4 in xmlParseEndTag2 (ctxt=0x3f4578, prefix=0x0, URI=0x0, line=100, nsNr=0, tlen=9) at ../parser.c:8203 #5 0x1002f71c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8538 #6 0x1002f07b in xmlParseContent (ctxt=0x3f4578) at ../parser.c:8357 #7 0x1002f60c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8517 #8 0x1002f07b in xmlParseContent (ctxt=0x3f4578) at ../parser.c:8357 #9 0x1002f60c in xmlParseElement (ctxt=0x3f4578) at ../parser.c:8517 #10 0x100312ba in xmlParseDocument (ctxt=0x3f4578) at ../parser.c:9118 #11 0x10035178 in xmlDoRead (ctxt=0x3f4578, URL=0x0, encoding=0x0, options=65552, reuse=1) at ../parser.c:13090 #12 0x10035605 in xmlCtxtReadFile (ctxt=0x3f4578, filename=0x3f3e71 "C:/Dev-Cpp/Projects/libxml_test/output_orig.xml", encoding=0x0, options=65552) at ../parser.c:13325 #13 0x004031ce in parseAndPrintFile ( filename=0x3f3e71 "C:/Dev-Cpp/Projects/libxml_test/output_orig.xml", rectxt=0x0) at ../xmllint.c:2209 #14 0x00405c06 in main (argc=3, argv=0x3f3f38) at ../xmllint.c:3438 From K.Buchcik@4commerce.de Tue Oct 18 08:58:40 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4CA253B0061 for ; Tue, 18 Oct 2005 08:58:40 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00546-08 for ; Tue, 18 Oct 2005 08:58:38 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id 7511F3B065B for ; Tue, 18 Oct 2005 08:58:05 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERr2z-0001De-Cg; Tue, 18 Oct 2005 14:58:29 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERr2w-0001DZ-Ua; Tue, 18 Oct 2005 14:58:29 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 18 Oct 2005 14:57:56 +0200 From: Kasimier Buchcik To: oliverst@online.de In-Reply-To: <11132301.547411129639394158.JavaMail.servlet@kundenserver> References: <11132301.547411129639394158.JavaMail.servlet@kundenserver> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 18 Oct 2005 14:57:56 +0200 Message-Id: <1129640276.1292.18.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: AW: Re: [xml] xmllint problems X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 12:58:40 -0000 Hi, On Tue, 2005-10-18 at 14:43 +0200, oliverst@online.de wrote: > > > >On Tue, 2005-10-18 at 13:16 +0200, oliverst@online.de wrote: > >> When I run xmllint with "--valid" or "--postvalid" it does crash when using > >the XML output of MAME as input (http://www.breaken.de/temp/output.xml). > > > >Cannot reproduce the crash on my Debian (sarge) box: > > > >kbu@librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml > >output.xml:143: element driver: validity error : No declaration for > >attribute savestate of element driver > > color="good" sound="good" graphic="good" savestate="supported" > >palettesize="32" > >[... some hundreds of validation errors...] > > > > > > This is happening because of a missing DTD entry. Add this to the DTD before the "palettesize" entry and those warnings should go away. > > [...] I added the DTD line, but still no crash: kbu@librax:/data/home/kbuchcik/temp$ xmllint --noout --valid output.xml kbu@librax:/data/home/kbuchcik/temp$ Note that I used the latest CVS sources for the test, so maybe your problem was already fixed; or it's a weird platform problem. kbu@librax:/data/home/kbuchcik/temp$ xmllint --version xmllint: using libxml version 20622-CVS2645 compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude IconvISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug MemDebug RunDebug I used the zipped XML document in "http://www.breaken.de/temp/output.zip", since "http://www.breaken.de/temp/output.xml" did not exist. Regards, Kasimier From oliverst@online.de Tue Oct 18 09:27:57 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C12BF3B06B6 for ; Tue, 18 Oct 2005 09:27:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03099-04 for ; Tue, 18 Oct 2005 09:27:56 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by menubar.gnome.org (Postfix) with ESMTP id DD0AE3B0061 for ; Tue, 18 Oct 2005 09:27:55 -0400 (EDT) Received: from [212.227.126.203] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERrVS-0007Pa-00; Tue, 18 Oct 2005 15:27:54 +0200 Received: from [172.23.4.159] (helo=pustefix159.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERrVS-0003NK-00; Tue, 18 Oct 2005 15:27:54 +0200 Message-Id: <22701084.551731129642074545.JavaMail.servlet@kundenserver> From: oliverst@online.de To: To: Subject: AW: Re: AW: Re: [xml] xmllint problems MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 5074873 X-Routing: DE X-Message-Id: <5074873$1129642074545172.23.4.15919726751@pustefix159.kundenserver.de-685797644> X-Received: from pustefix159.kundenserver.de by 206.253.224.132 with HTTP id 5074873 for [xml@gnome.org, K.Buchcik@4commerce.de]; Tue, 18 Oct 2005 15:27:54 CEST Date: Tue, 18 Oct 2005 15:27:54 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.159 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.586 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, TW_BX, TW_IB] X-Spam-Score: -4.586 X-Spam-Level: Cc: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 13:27:57 -0000 > >Hi, > >On Tue, 2005-10-18 at 14:43 +0200, oliverst@online.de wrote: >> > >> >On Tue, 2005-10-18 at 13:16 +0200, oliverst@online.de wrote: >> >> When I run xmllint with "--valid" or "--postvalid" it does crash when >using >> >the XML output of MAME as input (http://www.breaken.de/temp/output.xml). >> > >> >Cannot reproduce the crash on my Debian (sarge) box: >> > >> >kbu@librax:/data/home/kbuchcik/temp$ xmllint --valid output.xml >> >output.xml:143: element driver: validity error : No declaration for >> >attribute savestate of element driver >> > color="good" sound="good" graphic="good" savestate="supported" >> >palettesize="32" >> >[... some hundreds of validation errors...] >> > >> > >> >> This is happening because of a missing DTD entry. Add this to the DTD before >the "palettesize" entry and those warnings should go away. >> >> > >[...] > >I added the DTD line, but still no crash: > >kbu@librax:/data/home/kbuchcik/temp$ xmllint --noout --valid output.xml >kbu@librax:/data/home/kbuchcik/temp$ I didn't expect it to crash with the addutional line, but the validation errors/warnings to go away. >Note that I used the latest CVS sources for the test, so maybe your >problem was already fixed; or it's a weird platform problem. Maybe. I will try to fetch the latest CVS code and run it with that. >kbu@librax:/data/home/kbuchcik/temp$ xmllint --version >xmllint: using libxml version 20622-CVS2645 > compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 >FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude >IconvISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules >Debug MemDebug RunDebug > >I used the zipped XML document in >"http://www.breaken.de/temp/output.zip", since >"http://www.breaken.de/temp/output.xml" did not exist. Oops...good thinking. It was supposed to be output.zip. I mistyped. So long Oliver From oliverst@online.de Tue Oct 18 10:36:50 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CD1DF3B1A4F for ; Tue, 18 Oct 2005 10:36:50 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08224-02 for ; Tue, 18 Oct 2005 10:36:48 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.184]) by menubar.gnome.org (Postfix) with ESMTP id A5C943B1A72 for ; Tue, 18 Oct 2005 10:36:47 -0400 (EDT) Received: from [212.227.126.203] (helo=mrvnet.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERsa6-0001Yn-00; Tue, 18 Oct 2005 16:36:46 +0200 Received: from [172.23.4.159] (helo=pustefix159.kundenserver.de) by mrvnet.kundenserver.de with esmtp (Exim 3.35 #1) id 1ERsa6-0004Zc-00; Tue, 18 Oct 2005 16:36:46 +0200 Message-Id: <3363961.558281129646206465.JavaMail.servlet@kundenserver> From: oliverst@online.de To: To: Subject: AW: Re: AW: Re: [xml] xmllint problems MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 5074873 X-Routing: DE X-Message-Id: <5074873$1129646206465172.23.4.15923871882@pustefix159.kundenserver.de--1546570699> X-Received: from pustefix159.kundenserver.de by 206.253.224.132 with HTTP id 5074873 for [xml@gnome.org, K.Buchcik@4commerce.de]; Tue, 18 Oct 2005 16:36:46 CEST Date: Tue, 18 Oct 2005 16:36:46 +0200 X-Provags-ID: kundenserver.de abuse@kundenserver.de ident:@172.23.4.159 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.586 tagged_above=-999 required=2 tests=[BAYES_00, NO_REAL_NAME, TW_BX, TW_IB] X-Spam-Score: -4.586 X-Spam-Level: Cc: X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 14:36:51 -0000 >Note that I used the latest CVS sources for the test, so maybe your >problem was already fixed; or it's a weird platform problem. I tried the latest CVS and it does still crash with the same backtrace. I also recognised, that the commandline paramaters also work, if you just write one "-". So "-valid" would work as "--valid". When I enable schemas (and regexps and pattern) it doesn't crash anymore. In CVS, there are also two errors. In Makefile.mingw (line 213) and Makefile.bcb (line 219) there is an empty line, that causes make to fail. Also when I enable schmeas, but don't enable regexps and pattern, it won't compile. I also did runtest ## XML regression tests ## XML regression tests on memory ## XML entity subst regression tests ## XML Namespaces regression tests ## Error cases regression tests ## SAX1 callbacks regression tests ## SAX2 callbacks regression tests ## HTML regression tests ## HTML SAX regression tests ## Valid documents regression tests ## Validity checking regression tests ## General documents valid regression tests ## XPath expressions regression tests ## XPath document queries regression tests ## xml:id regression tests ## URI parsing tests ## URI base composition tests ## Path URI conversion tests failed the URL passing test for /path/to/a b.html## Schemas regression tests ## Relax-NG regression tests Total 8 tests, 1 errors, 0 leaks (obviously missing a newline after the failed message and the number of tests doesn't seem to match the actual tests performed) and runsuite (which has to be run in the root of libxml2) ## XML Schemas datatypes test suite from James Clark Ran 1035 tests, 11 errors, 0 leaks ## Relax NG test suite from James Clark Ran 253 tests, no errors ## Relax NG test suite for libxml2 Ran 183 tests, no errors Failed to parse xstc/Tests/Metadata/NISTXMLSchemaDatatypes.testSet Ran 0 tests (0 schemata), no errors Failed to parse xstc/Tests/Metadata/SunXMLSchema1-0-20020116.testSet Ran 0 tests (0 schemata), no errors Failed to parse xstc/Tests/Metadata/MSXMLSchema1-0-20020116.testSet Ran 0 tests (0 schemata), no errors Total 1471 tests, 11 errors, 0 leaks One final note I am using the MinGW GCC 3.4.4. From K.Buchcik@4commerce.de Tue Oct 18 11:12:44 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5D18E3B1A8B for ; Tue, 18 Oct 2005 11:12:44 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10636-02 for ; Tue, 18 Oct 2005 11:12:42 -0400 (EDT) Received: from mail.firmenpost.de (europa.4commerce.de [213.239.204.146]) by menubar.gnome.org (Postfix) with ESMTP id B0C2F3B09E8 for ; Tue, 18 Oct 2005 11:12:41 -0400 (EDT) Received: from localhost ([127.0.0.1]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERt9J-0001R0-LQ; Tue, 18 Oct 2005 17:13:09 +0200 Received: from pegasus.omega.4commerce.de ([10.1.2.11]) by mail.firmenpost.de with esmtp (Exim 4.50) id 1ERt9I-0001Qu-VJ; Tue, 18 Oct 2005 17:13:09 +0200 Received: pegasus 10.1.2.11 from 10.1.72.1 10.1.72.1 via HTTP with MS-WebStorage 6.5.6944 Received: from librax by pegasus; 18 Oct 2005 17:12:39 +0200 From: Kasimier Buchcik To: oliverst@online.de In-Reply-To: <3363961.558281129646206465.JavaMail.servlet@kundenserver> References: <3363961.558281129646206465.JavaMail.servlet@kundenserver> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 18 Oct 2005 17:12:39 +0200 Message-Id: <1129648359.1292.52.camel@librax> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Subject: Re: AW: Re: AW: Re: [xml] xmllint problems X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at firmenpost.de X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: K.Buchcik@4commerce.de X-SA-Exim-Scanned: No (on mail.firmenpost.de); SAEximRunCond expanded to false X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 15:12:44 -0000 Hi, On Tue, 2005-10-18 at 16:36 +0200, oliverst@online.de wrote: > >Note that I used the latest CVS sources for the test, so maybe your > >problem was already fixed; or it's a weird platform problem. > > I tried the latest CVS and it does still crash with the same backtrace. I also recognised, that the commandline paramaters also work, if you just write one "-". So "-valid" would work as "--valid". > > When I enable schemas (and regexps and pattern) it doesn't crash anymore. I guess the crashing code is just too intimidated to crash when the schema code hangs around :-) OK, seriously, but just a vague assumption: some code might fallback to other routines if some other code is not compiled in. Such fallback code might be buggy. I would look for #IFDEFed stuff in the functions reported by the stack trace. > > In CVS, there are also two errors. In Makefile.mingw (line 213) and Makefile.bcb (line 219) there is an empty line, that causes make to fail. > > Also when I enable schmeas, but don't enable regexps and pattern, it won't compile. Yes, the xmlregexp and pattern modules are definitely needed for the xmlschemas module. > I also did runtest > > ## XML regression tests > ## XML regression tests on memory > ## XML entity subst regression tests > ## XML Namespaces regression tests > ## Error cases regression tests > ## SAX1 callbacks regression tests > ## SAX2 callbacks regression tests > ## HTML regression tests > ## HTML SAX regression tests > ## Valid documents regression tests > ## Validity checking regression tests > ## General documents valid regression tests > ## XPath expressions regression tests > ## XPath document queries regression tests > ## xml:id regression tests > ## URI parsing tests > ## URI base composition tests > ## Path URI conversion tests > failed the URL passing test for /path/to/a b.html## Schemas regression tests > ## Relax-NG regression tests > Total 8 tests, 1 errors, 0 leaks > > (obviously missing a newline after the failed message and the number of tests doesn't seem to match the actual tests performed) Ah, this is different from my build with all modules being enabled: ## Path URI conversion tests ## Schemas regression tests > and runsuite (which has to be run in the root of libxml2) > ## XML Schemas datatypes test suite from James Clark > Ran 1035 tests, 11 errors, 0 leaks > ## Relax NG test suite from James Clark > Ran 253 tests, no errors > ## Relax NG test suite for libxml2 > Ran 183 tests, no errors > Failed to parse xstc/Tests/Metadata/NISTXMLSchemaDatatypes.testSet Here the test description files might be missing. Try a 'make tests' in Libxml2's directory 'xstc'; it should download all needed files. > Ran 0 tests (0 schemata), no errors > Failed to parse xstc/Tests/Metadata/SunXMLSchema1-0-20020116.testSet > Ran 0 tests (0 schemata), no errors > Failed to parse xstc/Tests/Metadata/MSXMLSchema1-0-20020116.testSet > Ran 0 tests (0 schemata), no errors > Total 1471 tests, 11 errors, 0 leaks > > One final note I am using the MinGW GCC 3.4.4. Regards, Kasimier From gpn.libxml@gmail.com Tue Oct 18 11:37:45 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 97DB13B12F5 for ; Tue, 18 Oct 2005 11:37:45 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12264-03 for ; Tue, 18 Oct 2005 11:37:44 -0400 (EDT) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.198]) by menubar.gnome.org (Postfix) with ESMTP id A16313B10B1 for ; Tue, 18 Oct 2005 11:37:35 -0400 (EDT) Received: by zproxy.gmail.com with SMTP id 8so1021177nzo for ; Tue, 18 Oct 2005 08:37:35 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=ZIffIQrc7PhxGC/jp9RtObjU77K9e5oPuiI/PtS56k12JEGGOGZazgFBm3HUijbC6sJ0xRQO5Nihl6CQj5yybqDeNxKujaLJP7a7hknq6Z/Dc/4VSJYpZ1pZ2yyOh6yiSzyZPOVrB8HD2Hwo3HGpqJul2uPtomQbAhtcwrg8Nmc= Received: by 10.36.3.19 with SMTP id 19mr3955584nzc; Tue, 18 Oct 2005 08:37:35 -0700 (PDT) Received: from ?192.168.1.254? ( [59.144.1.143]) by mx.gmail.com with ESMTP id c12sm6884205nzc.2005.10.18.08.37.33; Tue, 18 Oct 2005 08:37:34 -0700 (PDT) Message-ID: <43551678.3060203@gmail.com> Date: Tue, 18 Oct 2005 21:06:24 +0530 From: GPN User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Subject: [xml] Parser converts html entities X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 15:37:46 -0000 I am using a rather old version of libxml2 (2.6.8), and am in the process of merging with the latest. When the parser encounters references like   or •, I am seeing that I am getting called back with the converted codes. For e.g.   is converted to literal space ' ', • is getting converted to the bullet. Is this the default behaviour? This happens when I am using the html parser api's from HTMLparser.c. Is there an option to turn off this conversion? I searched through the message archives on the website, but couldn't get much info, though there were some discussions regarding "ampersand" and "entities". Best Regards, GPN From nilesh.jain@intel.com Tue Oct 18 15:16:44 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CEF443B0D32 for ; Tue, 18 Oct 2005 15:16:43 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 30322-05 for ; Tue, 18 Oct 2005 15:16:38 -0400 (EDT) Received: from fmsfmr006.fm.intel.com (fmr16.intel.com [192.55.52.70]) by menubar.gnome.org (Postfix) with ESMTP id 487EE3B0BA6 for ; Tue, 18 Oct 2005 15:16:33 -0400 (EDT) Received: from fmsfmr100.fm.intel.com (fmsfmr100.fm.intel.com [10.253.24.20]) by fmsfmr006.fm.intel.com (8.12.10/8.12.10/d: major-outer.mc,v 1.1 2004/09/17 17:50:56 root Exp $) with ESMTP id j9IJGR9q025143; Tue, 18 Oct 2005 19:16:27 GMT Received: from fmsmsxvs043.fm.intel.com (fmsmsxvs043.fm.intel.com [132.233.42.129]) by fmsfmr100.fm.intel.com (8.12.10/8.12.10/d: major-inner.mc,v 1.2 2004/09/17 18:05:01 root Exp $) with SMTP id j9IJFnlx005241; Tue, 18 Oct 2005 19:16:27 GMT Received: from fmsmsx332.amr.corp.intel.com ([132.233.42.148]) by fmsmsxvs043.fm.intel.com (SAVSMTP 3.1.7.47) with SMTP id M2005101812162605711 ; Tue, 18 Oct 2005 12:16:26 -0700 Received: from fmsmsx408.amr.corp.intel.com ([132.233.42.219]) by fmsmsx332.amr.corp.intel.com with Microsoft SMTPSVC(6.0.3790.211); Tue, 18 Oct 2005 12:16:26 -0700 Received: from 134.134.158.125 ([134.134.158.125]) by fmsmsx408.amr.corp.intel.com ([132.233.42.219]) via Exchange Front-End Server email.intel.com ([192.168.65.24]) with Microsoft Exchange Server HTTP-DAV ; Tue, 18 Oct 2005 19:16:26 +0000 Received: from nikka-dev.jf.intel.com.jf.intel.com by email.intel.com; 18 Oct 2005 12:23:01 -0700 Subject: Re: [xml] XML regression test cases... From: "Jain, Nilesh" To: veillard@redhat.com In-Reply-To: <20051011212538.GP17427@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> <20051011191537.GK17427@redhat.com> <1129064516.20144.11.camel@nikka-dev.jf.intel.com.jf.intel.com> <20051011212538.GP17427@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Tue, 18 Oct 2005 12:23:01 -0700 Message-Id: <1129663381.16372.26.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3-1.3.101mdk X-OriginalArrivalTime: 18 Oct 2005 19:16:26.0647 (UTC) FILETIME=[6F981A70:01C5D418] X-Scanned-By: MIMEDefang 2.52 on 10.253.24.20 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 19:16:44 -0000 On Tue, 2005-10-11 at 17:25 -0400, Daniel Veillard wrote: > On Tue, Oct 11, 2005 at 02:01:56PM -0700, Jain, Nilesh wrote: > > On Tue, 2005-10-11 at 15:15 -0400, Daniel Veillard wrote: > > > > > I will try to take an example putting this in parallel. If you were testing > > > the Mozilla rendering on a set of complex HTML pages, would you consider > > > failure to match an exact rendering at the pixel level for those pages > > > to be wrong. Obviously no! This is the same for libxml2 processing on some > > > complex processin/transformations, it will usually give exactly the same > > > output on two runs in different environemnt, but failure to do so doesn't > > > mean it's broken. > > > > I understand that and agree with you but one thing which still bothers > > me is when I run these regression test from 2.20 against code base of > > 2.22 and see around 51 test errors. Theoretically I should not see > > errors if ABI behavior is constant and running in same environment. Am I > > correct or missing something? > > > > Why I am looking from that point of view is if I include these test > > cases into LSB runtime for conformance, and let say spec is based on > > 2.22 and distro is running 2.24/2.25.. test cases which is confirming > > the specs should not fail in same environment. > > > > BTW the error messages I get when I run 2.20 against 2.22 code base is: > > ## XML regression tests > > File ./test/xhtml1 generated an error > > Please look at the difference between the ./test/xhtml1 output with 2.20 > against what is expected from 2.22 > This was discussed on this list during the month of August IIRC. I tried to find the discussion but couldn't, could you please send me the pointer. I see a slight difference between input (&t1) and output (<) file, when I compare against the newer version, but still not clear about this change. > > > ## SAX1 callbacks regression tests > > Got a difference for ./test/ent2 > > File ./test/ent2 generated an error > > Same thing. Could you make a diff and check by yourselves ? I don't see any change in ent2 input file between 2.6.20 and 2.6.22, but behavior is different. > > > Got a difference for ./test/ent7 > > I saw those changes, and validated them, otherwise they would not have gone > in CVS. I take a user viewpoint when I make those decisions, if you think > they should not have gone in, please explain why :-) I don't see any change in the input file for ent7 also. > > ## Schemas regression tests > > Error for ./test/schemas/any3_0.xml on ./test/schemas/any3_0.xsd failed > > Error for ./test/schemas/bug303566_1.xml > > on ./test/schemas/bug303566_1.xsd failed > > yes the XML Schemas implementation improved between those 2 versions. > Don't worry, even Microsoft is being fixing their XML Schemas implementation > as you can see on xmlschemas-dev@w3.org mailing list ! > And the complexity of the spec even warrant the garantee that you will never > see change in interpretation of the spec, there are parts nobody is 100% sure > about. This doesn't mean XSD support in libxml2 is not useful, nor that > peopel are not using it. This what worries me most. As mentioned earlier, stability of ABI behavior is big concern for LSB, if it changes between minor version, then it become very difficult for LSB certification to change. This can be a big issues because if LSB based it specification and runtime test on 2.6.20 and let us say Suse picks 2.6.21 and Mandirva 2.6.22 in there release for LSB certification, then it will fail because ABI behavior is not compatible.. I hope I have articulated the problem correctly. Another aspect I am looking at is the usage of model these ABI.. how application uses these ABI.. Does application really care about these changes? could you help me understand that, or send me some pointer to explore that. BTW: If somewhere I talking absurd, please accept my apologies as being novice about XML. Thanks, Nilesh From veillard@redhat.com Tue Oct 18 15:58:05 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 81F3D3B19E9 for ; Tue, 18 Oct 2005 15:58:05 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00406-06 for ; Tue, 18 Oct 2005 15:58:04 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 51C9A3B1881 for ; Tue, 18 Oct 2005 15:58:03 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9IJvigM021366; Tue, 18 Oct 2005 15:57:44 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9IJveV13501; Tue, 18 Oct 2005 15:57:40 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9IJveVP015933; Tue, 18 Oct 2005 15:57:40 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9IJvcrF015928; Tue, 18 Oct 2005 15:57:38 -0400 Date: Tue, 18 Oct 2005 15:57:37 -0400 From: Daniel Veillard To: "Jain, Nilesh" Subject: Re: [xml] XML regression test cases... Message-ID: <20051018195737.GA13527@redhat.com> References: <795389EE3D82B947880FBDA87E7F3F960923BB5C@fmsmsx408.amr.corp.intel.com> <20051011191537.GK17427@redhat.com> <1129064516.20144.11.camel@nikka-dev.jf.intel.com.jf.intel.com> <20051011212538.GP17427@redhat.com> <1129663381.16372.26.camel@nikka-dev.jf.intel.com.jf.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1129663381.16372.26.camel@nikka-dev.jf.intel.com.jf.intel.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: ML-libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 19:58:05 -0000 On Tue, Oct 18, 2005 at 12:23:01PM -0700, Jain, Nilesh wrote: > This what worries me most. As mentioned earlier, stability of ABI > behavior is big concern for LSB, if it changes between minor version, > then it become very difficult for LSB certification to change. This can > be a big issues because if LSB based it specification and runtime test > on 2.6.20 and let us say Suse picks 2.6.21 and Mandirva 2.6.22 in there > release for LSB certification, then it will fail because ABI behavior is > not compatible.. I hope I have articulated the problem correctly. > > Another aspect I am looking at is the usage of model these ABI.. how > application uses these ABI.. Does application really care about these > changes? could you help me understand that, or send me some pointer to > explore that. > > BTW: If somewhere I talking absurd, please accept my apologies as being > novice about XML. Being novice about XML is fine, as long as you can understand the rules of the game in that area. You seems to be missing somewhat how complex the set of specs related to XML that libxml2 implements. sometime bugfixes implies changes of behaviour because the behaviour is wrong accordingly to the associated XML specs, and not fixing the behaviour to follow the spec would be a totally wrong approach, because the stability of the underlying specs is way greater than the one of any software based on libxml2. So fixing behaviour to follow the specs is the right approach to long-term maintainance, and to preserve the interoperability. In a nutshell interoperability at the XML level is more important than interoperability between libxml2 releases. This doesn't mean that APIs or ABI get broken, actually you can poll all the linux vendors around and Sun Microsystems if you want, I'm pretty sure they will tell you that libxml2 is a stable piece of code for them. It grows, it improves but applications don't break because of it. It certainly is the case for Red Hat ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 18 16:01:57 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A74263B1301 for ; Tue, 18 Oct 2005 16:01:57 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00790-10 for ; Tue, 18 Oct 2005 16:01:55 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 0AC0C3B1B91 for ; Tue, 18 Oct 2005 16:01:35 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK1Y9c023028; Tue, 18 Oct 2005 16:01:34 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9IK1YV15249; Tue, 18 Oct 2005 16:01:34 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK1Yne018496; Tue, 18 Oct 2005 16:01:34 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9IK1Y5L018492; Tue, 18 Oct 2005 16:01:34 -0400 Date: Tue, 18 Oct 2005 16:01:34 -0400 From: Daniel Veillard To: oliverst@online.de Subject: Re: [xml] xmllint problems Message-ID: <20051018200134.GB13527@redhat.com> References: <13583155.910821129634204336.JavaMail.servlet@kundenserver> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <13583155.910821129634204336.JavaMail.servlet@kundenserver> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 20:01:58 -0000 On Tue, Oct 18, 2005 at 01:16:44PM +0200, oliverst@online.de wrote: > When I run xmllint with "--valid" or "--postvalid" it does crash when using the XML output of MAME as input (http://www.breaken.de/temp/output.xml). Runs fine on linux here even under valgrind. Compilation chain problem it seems. Seems also that page is HTML not XML, so you get a lot of errors... Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 18 16:04:01 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A28AE3B1881 for ; Tue, 18 Oct 2005 16:04:01 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01055-01 for ; Tue, 18 Oct 2005 16:04:00 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id EB36B3B1764 for ; Tue, 18 Oct 2005 16:03:59 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK3r8b024098; Tue, 18 Oct 2005 16:03:53 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9IK3iV16022; Tue, 18 Oct 2005 16:03:44 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK3iV4019166; Tue, 18 Oct 2005 16:03:44 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9IK3gSU019162; Tue, 18 Oct 2005 16:03:42 -0400 Date: Tue, 18 Oct 2005 16:03:42 -0400 From: Daniel Veillard To: oliverst@online.de Subject: Re: AW: Re: AW: Re: [xml] xmllint problems Message-ID: <20051018200341.GC13527@redhat.com> References: <3363961.558281129646206465.JavaMail.servlet@kundenserver> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3363961.558281129646206465.JavaMail.servlet@kundenserver> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 20:04:01 -0000 On Tue, Oct 18, 2005 at 04:36:46PM +0200, oliverst@online.de wrote: > >Note that I used the latest CVS sources for the test, so maybe your > >problem was already fixed; or it's a weird platform problem. > > I tried the latest CVS and it does still crash with the same backtrace. I also recognised, that the commandline paramaters also work, if you just write one "-". So "-valid" would work as "--valid". > > When I enable schemas (and regexps and pattern) it doesn't crash anymore. If you don't configure schemas in you're using the old deprecated DTD validation code. Sorry I can't support that code anymore ! Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From veillard@redhat.com Tue Oct 18 16:05:35 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 67D793B1301 for ; Tue, 18 Oct 2005 16:05:34 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01090-10 for ; Tue, 18 Oct 2005 16:05:32 -0400 (EDT) Received: from mx1.redhat.com (mx1.redhat.com [66.187.233.31]) by menubar.gnome.org (Postfix) with ESMTP id 995C33B1936 for ; Tue, 18 Oct 2005 16:05:29 -0400 (EDT) Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK5R5j024853; Tue, 18 Oct 2005 16:05:27 -0400 Received: from devserv.devel.redhat.com (devserv.devel.redhat.com [172.16.58.1]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id j9IK5RV16754; Tue, 18 Oct 2005 16:05:27 -0400 Received: from devserv.devel.redhat.com (localhost.localdomain [127.0.0.1]) by devserv.devel.redhat.com (8.12.11/8.12.11) with ESMTP id j9IK5RDD020024; Tue, 18 Oct 2005 16:05:27 -0400 Received: (from veillard@localhost) by devserv.devel.redhat.com (8.12.11/8.12.11/Submit) id j9IK5R4V020022; Tue, 18 Oct 2005 16:05:27 -0400 Date: Tue, 18 Oct 2005 16:05:27 -0400 From: Daniel Veillard To: GPN Subject: Re: [xml] Parser converts html entities Message-ID: <20051018200526.GD13527@redhat.com> References: <43551678.3060203@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43551678.3060203@gmail.com> User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.669 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB, TW_PM] X-Spam-Score: -4.669 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: veillard@redhat.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 20:05:35 -0000 On Tue, Oct 18, 2005 at 09:06:24PM +0530, GPN wrote: > This happens when I am using the html parser api's from > HTMLparser.c. > Is there an option to turn off this conversion? I don't think so. Those entities are predefined in the HTML language and hence are substitued. Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ veillard@redhat.com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ From oliverst@online.de Tue Oct 18 17:07:46 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1421C3B0E76 for ; Tue, 18 Oct 2005 17:07:46 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04797-07 for ; Tue, 18 Oct 2005 17:07:43 -0400 (EDT) Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186]) by menubar.gnome.org (Postfix) with ESMTP id 30F903B0FC7 for ; Tue, 18 Oct 2005 17:07:43 -0400 (EDT) Received: from p548AE710.dip.t-dialin.net [84.138.231.16] (helo=pimpninja) by mrelayeu.kundenserver.de with ESMTP (Nemesis), id 0ML29c-1ERygD1bwO-0005xv; Tue, 18 Oct 2005 23:07:29 +0200 From: "=?ISO-8859-1?Q?Oliver_St=F6neberg?=" To: veillard@redhat.com Date: Tue, 18 Oct 2005 23:09:35 +0200 MIME-Version: 1.0 Subject: Re: AW: Re: AW: Re: [xml] xmllint problems Message-ID: <435580AF.18266.7CCD8C0B@localhost> Priority: normal In-reply-to: <20051018200341.GC13527@redhat.com> References: <3363961.558281129646206465.JavaMail.servlet@kundenserver> X-mailer: Pegasus Mail for Windows (4.21c) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Provags-ID: kundenserver.de abuse@kundenserver.de login:5a6240c6bdf5d74282a712e29b1bac42 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.8 tagged_above=-999 required=2 tests=[BAYES_00, RCVD_IN_SORBS] X-Spam-Score: -4.8 X-Spam-Level: Cc: xml@gnome.org X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: oliverst@online.de List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 21:07:46 -0000 > On Tue, Oct 18, 2005 at 04:36:46PM +0200, oliverst@online.de wrote: > > >Note that I used the latest CVS sources for the test, so maybe your > > >problem was already fixed; or it's a weird platform problem. > > > > I tried the latest CVS and it does still crash with the same backtrace. I also recognised, that the commandline paramaters also work, if you just write one "-". So "-valid" would work as "--valid". > > > > When I enable schemas (and regexps and pattern) it doesn't crash anymore. > > If you don't configure schemas in you're using the old deprecated DTD > validation code. Sorry I can't support that code anymore ! Didn't know that. I will keep it in mind for the future. From mmarathe@spikesource.com Tue Oct 18 17:22:42 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 73A7F3B0C88 for ; Tue, 18 Oct 2005 17:22:39 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05477-06 for ; Tue, 18 Oct 2005 17:22:38 -0400 (EDT) Received: from mail.spikesource.com (gw1-ss-fe0.spikesource.com [209.10.209.56]) by menubar.gnome.org (Postfix) with ESMTP id 889EC3B09E8 for ; Tue, 18 Oct 2005 17:22:37 -0400 (EDT) Received: from caledon.spikesource.com (caledon.spikesource.com [::ffff:172.16.20.172]) by mail.spikesource.com with esmtp; Tue, 18 Oct 2005 14:22:36 -0700 id 0020C41D.4355679C.000068D6 From: Manish Marathe To: XML Group In-Reply-To: <20051018200526.GD13527@redhat.com> References: <43551678.3060203@gmail.com> <20051018200526.GD13527@redhat.com> Organization: SpikeSource, Inc. Date: Tue, 18 Oct 2005 14:22:36 -0700 Message-Id: <1129670556.5108.37.camel@caledon.spikesource.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Mailer: Evolution 2.0.2 (2.0.2-3) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-4.746 tagged_above=-999 required=2 tests=[BAYES_00, TW_BX, TW_IB] X-Spam-Score: -4.746 X-Spam-Level: Subject: [xml] libxml2 tests X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mmarathe@spikesource.com List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Oct 2005 21:22:42 -0000 I ran tests for libxml 2.6.22 I executed three different test scripts 1) runtest (2608 tests) 2) runsuite (1471 tests) 3) testapi (264115 tests) Do all these numbers really signify, I mean for testapi are there really 264k tests? If not which of the above are the actual tests for the component? From pesmail@gmail.com Wed Oct 19 04:49:56 2005 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5B79E3B1146 for ; Wed, 19 Oct 2005 04:49:56 -0400 (EDT) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16832-09 for ; Wed, 19 Oct 2005 04:49:53 -0400 (EDT) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.202]) by menubar.gnome.org (Postfix) with ESMTP id 13DF93B3B5C for ; Wed, 19 Oct 2005 04:49:52 -0400 (EDT) Received: by xproxy.gmail.com with SMTP id i29so26649wxd for ; Wed, 19 Oct 2005 01:49:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=rUUp5XgnMhG3e1vjQmpVrJb2Yb9cQ4N1ElEM3ZmOa/i6pLNxmf2UDS207LfUlDL0M8zCDUx6WunH/TOBsrGsc0k/E55xFxmleMjWIbd7/Wkrf/bojY5BqbSCFZ+RtJVtiPZSZlIWpOc1t9KRF/+9fnOeILJ+88yhJo5ur5WMKxY= Received: by 10.70.65.17 with SMTP id n17mr183627wxa; Wed, 19 Oct 2005 01:49:51 -0700 (PDT) Received: by 10.70.118.2 with HTTP; Wed, 19 Oct 2005 01:49:51 -0700 (PDT) Message-ID: Date: Wed, 19 Oct 2005 10:49:51 +0200 From: Petr To: xml@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.646 tagged_above=-999 required=2 tests=[BAYES_00, HTML_70_80, HTML_MESSAGE, TW_BX, TW_IB] X-Spam-Score: -1.646 X-Spam-Level: Subject: [xml] set No browser could parse it. I need something like this: but it seems the libxml library is automatically adding CDATA section, when it sees script tag (he knows it's CDATA from DTD). Anyone has idea how to solve this problem? Petr -------------------------------- sample code (it's PHP using DOM [libxml2]) $html =3D "\n" . " \n" . "\n" . "\n" . "