From paul.b.cameron@kepware.com Mon May 2 15:36:18 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D9EA075023C for ; Mon, 2 May 2011 15:36:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.009 X-Spam-Level: X-Spam-Status: No, score=-0.009 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, HTML_MESSAGE=0.001, MSGID_MULTIPLE_AT=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 QbdrvplhTNQ5 for ; Mon, 2 May 2011 15:36:13 +0000 (UTC) X-Greylist: delayed 1107 seconds by postgrey-1.32 at menubar.gnome.org; Mon, 02 May 2011 15:36:13 UTC Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id 59CA9750082 for ; Mon, 2 May 2011 15:36:04 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id AAE30478; Mon, 02 May 2011 11:16:51 -0400 From: "Paul B. Cameron" To: Date: Mon, 2 May 2011 11:16:51 -0400 Message-ID: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CC08BA.6F4E8D60" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwI2/Y1M7WsQXO0Qp6+zK5FJ5L2qQ== Content-Language: en-us Subject: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 02 May 2011 15:36:19 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CC08BA.6F4E8D60 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I am working on a project to port a Win32 application that uses MSXML to a POSIX environment with LIBXML2. The good news is that this project includes an abstraction layer on top of the MSXML implementation, the bad news is that the Win32 impl makes heavy use of the MSXML "SelectSingleNode" API (which basically just takes an XPath query and returns a pointer to the first node that matches). Easy enough to implement using LIBXML2, except the app layer expects to obtain the namespace mappings necessary to evaluate the XPath entirely from within the document. In Win32, it's a matter of requesting the namespaces declared in the document in the form of an schema collection object: CComPtr pReadOnlyCollection; VERIFY(SUCCEEDED(m_pIDocument->get_namespaces(&pReadOnlyCollection))); . // walk through the collection, extract the URI from each member, build namespace declaration strings like "xmlns:%s='%s'") . // register the mapping with the space-separated list of namespace declaration attributes created above HRESULT hr = m_pIDocument->setProperty (bstr_t (L"SelectionNamespaces"), variant_t (strSelectionNamespaces)); I looked through the LIBXML2 doc and didn't find anything quite equivalent. Is there a simple way to retrieve each namespace declared in a given instance document without having to resort to a element-by-element search? Thanks, - Paul C. ------=_NextPart_000_0001_01CC08BA.6F4E8D60 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I am = working on a project to port a Win32 application that uses MSXML to a = POSIX environment with LIBXML2. The good news is that this project = includes an abstraction layer on top of the MSXML implementation, the = bad news is that the Win32 impl makes heavy use of the MSXML = “SelectSingleNode” API (which basically just takes an XPath = query and returns a pointer to the first node that matches). =

 =

Easy = enough to implement using LIBXML2, except the app layer expects to = obtain the namespace mappings necessary to evaluate the XPath entirely = from within the document. In Win32, it’s a matter of requesting = the namespaces declared in the document in the form of an schema = collection object:

 =

CComPtr<IXMLDOMSchemaCollection> = pReadOnlyCollection;

VERIFY(SUCCEEDED(m_pIDocument->get_namespaces(&pReadOnlyColl= ection)));

// walk through the = collection, extract the URI from each member, build namespace = declaration strings like "xmlns:%s=3D'%s'")

… =

// register the = mapping with the space-separated list of namespace declaration = attributes created above

HRESULT hr =3D = m_pIDocument->setProperty (bstr_t (L"SelectionNamespaces"), = variant_t (strSelectionNamespaces));

 =

I looked = through the LIBXML2 doc and didn’t find anything quite equivalent. = Is there a simple way to retrieve each namespace declared in a given = instance document without having to resort to a element-by-element = search?

 =

Thanks,

- Paul = C.

 

------=_NextPart_000_0001_01CC08BA.6F4E8D60-- From bunglehead@gmail.com Mon May 2 19:01:21 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 1E8D87502B8 for ; Mon, 2 May 2011 19:01:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.457 X-Spam-Level: X-Spam-Status: No, score=-2.457 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_SX=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 sWxFodCrLtyE for ; Mon, 2 May 2011 19:01:10 +0000 (UTC) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by menubar.gnome.org (Postfix) with ESMTP id 6447C75023C for ; Mon, 2 May 2011 19:01:01 +0000 (UTC) Received: by fxm11 with SMTP id 11so7954874fxm.27 for ; Mon, 02 May 2011 12:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=NeuH79ixhrxjHzFkqFaVZsmAN9RF9nY3kPQgeiVKwsM=; b=MJZSTmVsOT2TBba5TnsYLDBfI5CIUURS8sFHjTdLdTVsMNvo3JRTzdvpJf/yRZXOlV 94uPemmqunWCdvGmcUZCRAeOd+iZyg6mFhjgxqCOyCBKcORyKmz6KXgkg3TkZ9ZVi/t/ aHfcoMkRFRuANktnSaiRjHxg1isKlzIFrw2iQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type; b=uf4ZmHkXlGI6vKX2l/FKPCVtkop8wy8dHp5BxQ9E191oXPSPrFsmDnYk8CU4e56QTZ pxnO1tVXZFNJj61Hdkb0t8lTNJXlhvN5fPUjrYssFIqmKA+Zo3A8f4K8v773YUT6KyCS 0XrHJuMYpTtcJx4vS1C0VyHp+r67wfyQJgI+A= Received: by 10.223.6.11 with SMTP id 11mr145948fax.93.1304362859261; Mon, 02 May 2011 12:00:59 -0700 (PDT) Received: from [85.141.74.150] (ppp85-141-74-150.pppoe.mtu-net.ru [85.141.74.150]) by mx.google.com with ESMTPS id 19sm1829303faf.29.2011.05.02.12.00.57 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2011 12:00:58 -0700 (PDT) Message-ID: <4DBEFF61.5050204@gmail.com> Date: Mon, 02 May 2011 23:00:49 +0400 From: Nikolay Sivov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> In-Reply-To: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> Content-Type: multipart/alternative; boundary="------------060407020707020408000604" Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 02 May 2011 19:01:21 -0000 This is a multi-part message in MIME format. --------------060407020707020408000604 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 5/2/2011 19:16, Paul B. Cameron wrote: > > I am working on a project to port a Win32 application that uses MSXML > to a POSIX environment with LIBXML2. The good news is that this > project includes an abstraction layer on top of the MSXML > implementation, the bad news is that the Win32 impl makes heavy use of > the MSXML "SelectSingleNode" API (which basically just takes an XPath > query and returns a pointer to the first node that matches). > > Easy enough to implement using LIBXML2, except the app layer expects > to obtain the namespace mappings necessary to evaluate the XPath > entirely from within the document. In Win32, it's a matter of > requesting the namespaces declared in the document in the form of an > schema collection object: > > CComPtr pReadOnlyCollection; > > VERIFY(SUCCEEDED(m_pIDocument->get_namespaces(&pReadOnlyCollection))); > > ... > > // walk through the collection, extract the URI from each member, > build namespace declaration strings like "xmlns:%s='%s'") > > ... > > // register the mapping with the space-separated list of namespace > declaration attributes created above > > HRESULT hr = m_pIDocument->setProperty (bstr_t > (L"SelectionNamespaces"), variant_t (strSelectionNamespaces)); > > I looked through the LIBXML2 doc and didn't find anything quite > equivalent. Is there a simple way to retrieve each namespace declared > in a given instance document without having to resort to a > element-by-element search? > Hi, Paul. You might want to look at wine's code that uses libxml2 (including XPath) to build msxml implementation on top of it. SelectionNamespaces property is supported and used for queries. http://source.winehq.org/git/wine.git/tree/HEAD:/dlls/msxml3 > Thanks, > > - Paul C. > > > _______________________________________________ > xml mailing list, project page http://xmlsoft.org/ > xml@gnome.org > http://mail.gnome.org/mailman/listinfo/xml --------------060407020707020408000604 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 5/2/2011 19:16, Paul B. Cameron wrote:

I am working on a project to port a Win32 application that uses MSXML to a POSIX environment with LIBXML2. The good news is that this project includes an abstraction layer on top of the MSXML implementation, the bad news is that the Win32 impl makes heavy use of the MSXML “SelectSingleNode” API (which basically just takes an XPath query and returns a pointer to the first node that matches).

 

Easy enough to implement using LIBXML2, except the app layer expects to obtain the namespace mappings necessary to evaluate the XPath entirely from within the document. In Win32, it’s a matter of requesting the namespaces declared in the document in the form of an schema collection object:

 

CComPtr<IXMLDOMSchemaCollection> pReadOnlyCollection;

VERIFY(SUCCEEDED(m_pIDocument->get_namespaces(&pReadOnlyCollection)));

// walk through the collection, extract the URI from each member, build namespace declaration strings like "xmlns:%s='%s'")

// register the mapping with the space-separated list of namespace declaration attributes created above

HRESULT hr = m_pIDocument->setProperty (bstr_t (L"SelectionNamespaces"), variant_t (strSelectionNamespaces));

 

I looked through the LIBXML2 doc and didn’t find anything quite equivalent. Is there a simple way to retrieve each namespace declared in a given instance document without having to resort to a element-by-element search?

Hi, Paul.

You might want to look at wine's code that uses libxml2 (including XPath) to build msxml implementation on top of it.
SelectionNamespaces property is supported and used for queries.

http://source.winehq.org/git/wine.git/tree/HEAD:/dlls/msxml3

 

Thanks,

- Paul C.

 

_______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml

--------------060407020707020408000604-- From paul.b.cameron@kepware.com Mon May 2 19:48:04 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 434EE75030E for ; Mon, 2 May 2011 19:48:04 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.508 X-Spam-Level: X-Spam-Status: No, score=-0.508 tagged_above=-999 required=2 tests=[BAYES_05=-0.5, HTML_MESSAGE=0.001, MSGID_MULTIPLE_AT=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 DYW1YX+MGCpe for ; Mon, 2 May 2011 19:47:59 +0000 (UTC) Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id AE93875037A for ; Mon, 2 May 2011 19:47:51 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id AA38041C; Mon, 02 May 2011 15:47:04 -0400 From: "Paul B. Cameron" To: References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> In-Reply-To: <4DBEFF61.5050204@gmail.com> Date: Mon, 2 May 2011 15:47:04 -0400 Message-ID: <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CC08E0.2F11E460" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwI+zqbnxZezizbQEyt3MqI8lq/LQABFLYg Content-Language: en-us Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 02 May 2011 19:48:04 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CC08E0.2F11E460 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thanks for the feedback, Nikolay. The Wine source will be useful as I continue down this path. In this particular case, however, I know how to format and register the namespace information before evaluating the query. The challenge is obtaining the set of namespaces declared by the instance document in the first place. Unfortunately the Wine domdoc_get_namespaces method is an E_NOTIMPL at present, perhaps this isn't a trivial problem to solve with libxml2. ------=_NextPart_000_0001_01CC08E0.2F11E460 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks for the feedback, Nikolay. The Wine source will be useful = as I continue down this path.

 

In this particular case, however, I know how to format and = register the namespace information before evaluating the query. The = challenge is obtaining the set of namespaces declared by the instance = document in the first place. Unfortunately the Wine = domdoc_get_namespaces method is an E_NOTIMPL at present, perhaps this = isn’t a trivial problem to solve with libxml2.

------=_NextPart_000_0001_01CC08E0.2F11E460-- From veillard@redhat.com Tue May 3 02:41:27 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB1BA750063 for ; Tue, 3 May 2011 02:41:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 tVZGmxRV1Cib for ; Tue, 3 May 2011 02:41:21 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 61C6F750060 for ; Tue, 3 May 2011 02:41:12 +0000 (UTC) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p432f3Zr001021 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 May 2011 22:41:03 -0400 Received: from paphio.veillard.com (vpn1-112-52.nay.redhat.com [10.66.112.52]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p432f0A6000654 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 May 2011 22:41:02 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p432etUA029045; Tue, 3 May 2011 10:40:57 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p432eqYd029032; Tue, 3 May 2011 10:40:52 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Tue, 3 May 2011 10:40:52 +0800 From: Daniel Veillard To: Alex Bligh Message-ID: <20110503024052.GN21035@redhat.com> References: <067DE01B5E6D1679736175B4@Ximines.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <067DE01B5E6D1679736175B4@Ximines.local> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Cc: xml@gnome.org Subject: Re: [xml] xmlKeepBlanksDefault X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 03 May 2011 02:41:27 -0000 On Sat, Apr 30, 2011 at 01:29:02PM +0100, Alex Bligh wrote: > I'd like to check my understanding of xmlKeepBlanksDefault. > > What I want to do is to make xmlParseFile not generate whitespace nodes > (i.e. I want it to generate the same tree exactly as if no additional > whitespace had been provided), but have xmlSaveFormatFile write > a file out with formatting. > > I know I can set XML_PARSE_NOBLANKS in xmlParserOption in xmlReadFile, but > this is not available in xmlParseFile. xmlReadFile also seems to do far Use xmlReadFile, it's the modern API for parsing do not use xmlSaveFormatFile, use the modern APIs for saving from xmlsave http://xmlsoft.org/html/libxml-xmlsave.html create a saving context, tell it how you want the output. > more than xmlParseFie (currently I'm using ML_PARSE_NONET | > XML_PARSE_NODICT | XML_PARSE_NOXINCNODE | XML_PARSE_NOBLANKS to turn all > that off). Okay > Setting xmlKeepBlanksDefault to 0 looks promising, and indeed appears > to work. However, the manual page somewhat cryptically says: Simpler: "do not use xmlKeepBlanksDefault, it's a global variable" Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From veillard@redhat.com Tue May 3 02:47:15 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0C8EA750063 for ; Tue, 3 May 2011 02:47:15 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 ANsDVKvugvj5 for ; Tue, 3 May 2011 02:47:09 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 7634A750060 for ; Tue, 3 May 2011 02:47:01 +0000 (UTC) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p432kxkP008421 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 2 May 2011 22:46:59 -0400 Received: from paphio.veillard.com (vpn1-112-52.nay.redhat.com [10.66.112.52]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p432kufa025309 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 2 May 2011 22:46:59 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p432kqjK029207; Tue, 3 May 2011 10:46:53 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p432koCE029205; Tue, 3 May 2011 10:46:50 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Tue, 3 May 2011 10:46:50 +0800 From: Daniel Veillard To: "Paul B. Cameron" Message-ID: <20110503024650.GO21035@redhat.com> References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Cc: xml@gnome.org Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 03 May 2011 02:47:15 -0000 On Mon, May 02, 2011 at 03:47:04PM -0400, Paul B. Cameron wrote: > In this particular case, however, I know how to format and register the > namespace information before evaluating the query. The challenge is > obtaining the set of namespaces declared by the instance document in the > first place. Unfortunately the Microsoft API doesn't make much sense I'm afraid (or I misunderstand it), because a namespace URI may be bound to multiple prefixes on a document, and a given prefix may be bound to different namespace on a given document. So asking at the document level doesn't make sense to me. What you can do is ask for the list of namespaces in scope for a given element, libxml2 has an aPI for this: http://xmlsoft.org/html/libxml-tree.html#xmlGetNsList Note that the namespace prefix used in an XPath query is not significant, the XPath matching will be done only on th namespace name, never the prefix. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From bunglehead@gmail.com Tue May 3 05:17:08 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CB2047500C8 for ; Tue, 3 May 2011 05:17:08 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.535 X-Spam-Level: X-Spam-Status: No, score=-2.535 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 dy3IOVXS5d3C for ; Tue, 3 May 2011 05:17:05 +0000 (UTC) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by menubar.gnome.org (Postfix) with ESMTP id 65EE975008E for ; Tue, 3 May 2011 05:16:56 +0000 (UTC) Received: by fxm11 with SMTP id 11so8484252fxm.27 for ; Mon, 02 May 2011 22:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type :content-transfer-encoding; bh=9wAdijvKvWkcl7e13Dxc6KedJJUvkXYoA6ueqYxQQ7s=; b=GnycVCROSecm1CffVX89dEmeagoPcJ3mNgqQpa9Us3rBKg0Nv47lAqms+srGjDpWRk J7dnYbaGt7v60I1gJ8JjI/xeO0DsOgdT5l5enKWAAPW/ZEQrdEFZ6ZNVPtZny0n3E2sd jqBL3lNq13NMAe9Vq142FJbxNnSFp9MA5DSNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=tpVISBkkPT2K7Fwc9d9/N3mUik1Scw7TlWTdL2Qih8xb/VpoInaAqw8VIXJDzZ2UBv OpFuNQGkgiDzUiN1/uvB1SJyEjVfQs9YhheDsa73zp5GGYa/Gzah3YQ3eGu8hW6oklaL Do1tDbzsUW9D1XNk/x8O98JV6sqlHs1nHjL2c= Received: by 10.223.106.78 with SMTP id w14mr838035fao.35.1304399815069; Mon, 02 May 2011 22:16:55 -0700 (PDT) Received: from [85.141.74.150] (ppp85-141-74-150.pppoe.mtu-net.ru [85.141.74.150]) by mx.google.com with ESMTPS id c24sm1941494fak.31.2011.05.02.22.16.53 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 02 May 2011 22:16:53 -0700 (PDT) Message-ID: <4DBF8FBB.3030306@gmail.com> Date: Tue, 03 May 2011 09:16:43 +0400 From: Nikolay Sivov User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> <20110503024650.GO21035@redhat.com> In-Reply-To: <20110503024650.GO21035@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 03 May 2011 05:17:09 -0000 On 5/3/2011 06:46, Daniel Veillard wrote: > On Mon, May 02, 2011 at 03:47:04PM -0400, Paul B. Cameron wrote: >> In this particular case, however, I know how to format and register the >> namespace information before evaluating the query. The challenge is >> obtaining the set of namespaces declared by the instance document in the >> first place. > Unfortunately the Microsoft API doesn't make much sense I'm afraid > (or I misunderstand it), because a namespace URI may be bound to > multiple prefixes on a document, and a given prefix may be bound to > different namespace on a given document. So asking at the document > level doesn't make sense to me. > What you can do is ask for the list of namespaces in scope for > a given element, libxml2 has an aPI for this: > http://xmlsoft.org/html/libxml-tree.html#xmlGetNsList It's not exactly that it seems. Their SDK has an example code for that, so it does: - get namespace URI for document element; - use that namespace URI to get a particular schema interface from collection returned from get_namespaces(). So this is only about schemas I think. The reason it's a stub in Wine is most likely that nobody needed it. > Note that the namespace prefix used in an XPath query is not significant, > the XPath matching will be done only on th namespace name, never the prefix. > > Daniel > From alex@alex.org.uk Tue May 3 06:32:43 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 42CCD75006A for ; Tue, 3 May 2011 06:32:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.901 X-Spam-Level: X-Spam-Status: No, score=-1.901 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, SPF_PASS=-0.001] autolearn=ham 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 lL7DouWG8j+K for ; Tue, 3 May 2011 06:32:40 +0000 (UTC) Received: from mail.avalus.com (mail.avalus.com [89.16.176.221]) by menubar.gnome.org (Postfix) with ESMTP id E311A75002F for ; Tue, 3 May 2011 06:32:31 +0000 (UTC) Received: from [192.168.100.116] (nat67.mia.three.co.uk [217.171.129.67]) by mail.avalus.com (Postfix) with ESMTPSA id AC28FC560C8; Tue, 3 May 2011 07:32:27 +0100 (BST) Date: Tue, 03 May 2011 07:32:34 +0100 From: Alex Bligh To: veillard@redhat.com Message-ID: <39B1A7F81DB36026FAF38813@nimrod.local> In-Reply-To: <20110503024052.GN21035@redhat.com> References: <067DE01B5E6D1679736175B4@Ximines.local> <20110503024052.GN21035@redhat.com> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Cc: xml@gnome.org Subject: Re: [xml] xmlKeepBlanksDefault X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Alex Bligh List-Id: The Gnome XML library mailing-list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 May 2011 06:32:43 -0000 --On 3 May 2011 10:40:52 +0800 Daniel Veillard wrote: > Use xmlReadFile, it's the modern API for parsing > do not use xmlSaveFormatFile, use the modern APIs for saving from xmlsave > http://xmlsoft.org/html/libxml-xmlsave.html > > create a saving context, tell it how you want the output. OK thanks re save. It would be useful if the docs somewhere said what is deprecated and what isn't. >> more than xmlParseFie (currently I'm using ML_PARSE_NONET | >> XML_PARSE_NODICT | XML_PARSE_NOXINCNODE | XML_PARSE_NOBLANKS to turn all >> that off). > > Okay My concern about using xmlReadFile is that there are options there, and more options getting added in a newer version of the library may generate more node types I don't want in the future (the options appear to turn things off, and not on). xmlParseFile is at least (I think) guaranteed to not produce more higher level stuff (dictionaries, entities, etc.) > Simpler: "do not use xmlKeepBlanksDefault, it's a global variable" Well that's admirably concise. I don't mind it being global per se as I only have one thing reading and writing. Suggestion for the documentation: That sentence goes in, plus the statement that default is 1. (I am happy to send patches for the docs if they are in version control somewhere rather just whining about them). -- Alex Bligh From paul.b.cameron@kepware.com Tue May 3 16:33:28 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 29C15750144 for ; Tue, 3 May 2011 16:33:28 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.909 X-Spam-Level: X-Spam-Status: No, score=-1.909 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MSGID_MULTIPLE_AT=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 mnrFNunmjdeB for ; Tue, 3 May 2011 16:33:26 +0000 (UTC) Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id 1C9BA7500B0 for ; Tue, 3 May 2011 16:33:17 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id AE0C01D8; Tue, 03 May 2011 12:32:12 -0400 From: "Paul B. Cameron" To: References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> <20110503024650.GO21035@redhat.com> In-Reply-To: <20110503024650.GO21035@redhat.com> Date: Tue, 3 May 2011 12:32:11 -0400 Message-ID: <000001cc09af$a7ccded0$f7669c70$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwJPEqHH75NIF9LTC69BP5RNDPmcAAbWIhQ Content-Language: en-us Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 03 May 2011 16:33:28 -0000 Thank you for your reply, Daniel. Putting the namespace issue aside (I = can work around this, as you suggest), I do have another related question. = It is probably a bit na=EFve, so please bear with me.=20 To implement something similar to SelectSingleNode, I am taking an input xmlNodePtr (element) and using it to build an XPath expression using the parent\child link, i.e. so the result is something like "\root\child\grandchild". I pass this to xmlXPathEvalExpression, = retrieve the node I want and return a copy of that node using xmlCopyNode.=20 However, since xmlCopyNode does not populate the parent member of the = copy I can't use it in future calls to SelectSingleNode, because it won't be = able to generate the XPath expression properly.=20 I assume it is not wise to simply populate the parent member of the copy using the original node that was passed into my function. Is there a way = to 'find' the DOM node that matches a node returned by an XPath query? Am I going about the whole thing wrong? Thanks, - Paul From paul.b.cameron@kepware.com Tue May 3 19:44:00 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2786F75002F for ; Tue, 3 May 2011 19:44:00 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.909 X-Spam-Level: X-Spam-Status: No, score=-1.909 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, MSGID_MULTIPLE_AT=0.001, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 lvYVayU-1tzs for ; Tue, 3 May 2011 19:43:56 +0000 (UTC) Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id 7D518750070 for ; Tue, 3 May 2011 19:43:48 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id AAC00424; Tue, 03 May 2011 15:42:56 -0400 From: "Paul B. Cameron" To: References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> <20110503024650.GO21035@redhat.com> <000001cc09af$a7ccded0$f7669c70$@b.cameron@kepware.com> In-Reply-To: <000001cc09af$a7ccded0$f7669c70$@b.cameron@kepware.com> Date: Tue, 3 May 2011 15:42:56 -0400 Message-ID: <000301cc09ca$4cc27d40$e64777c0$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwJPEqHH75NIF9LTC69BP5RNDPmcAAbWIhQAATQd0A= Content-Language: en-us Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 03 May 2011 19:44:00 -0000 I believe I'm able to answer my own questions: 1. Use xmlGetNodePath to build the node path instead of rolling a custom function.=20 2. There is no need to return a copy of a node retrieved by an XPath evaluation - node pointers returned by the query point to the actual = node memory in the tree. These nodes do not become invalid when the query = object or context are freed.=20 Thanks, - Paul -----Original Message----- From: xml-bounces@gnome.org [mailto:xml-bounces@gnome.org] On Behalf Of = Paul B. Cameron Sent: Tuesday, May 03, 2011 12:32 PM To: xml@gnome.org Subject: Re: [xml] SelectSingleNode Thank you for your reply, Daniel. Putting the namespace issue aside (I = can work around this, as you suggest), I do have another related question. = It is probably a bit na=EFve, so please bear with me.=20 To implement something similar to SelectSingleNode, I am taking an input xmlNodePtr (element) and using it to build an XPath expression using the parent\child link, i.e. so the result is something like "\root\child\grandchild". I pass this to xmlXPathEvalExpression, = retrieve the node I want and return a copy of that node using xmlCopyNode.=20 However, since xmlCopyNode does not populate the parent member of the = copy I can't use it in future calls to SelectSingleNode, because it won't be = able to generate the XPath expression properly.=20 I assume it is not wise to simply populate the parent member of the copy using the original node that was passed into my function. Is there a way = to 'find' the DOM node that matches a node returned by an XPath query? Am I going about the whole thing wrong? Thanks, - Paul _______________________________________________ xml mailing list, project page http://xmlsoft.org/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml From veillard@redhat.com Wed May 4 07:48:33 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6D56C7503BD for ; Wed, 4 May 2011 07:48:33 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 4JmeIxigAWUL for ; Wed, 4 May 2011 07:48:30 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 24437750424 for ; Wed, 4 May 2011 07:48:21 +0000 (UTC) Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p447mKKu014314 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 May 2011 03:48:20 -0400 Received: from paphio.veillard.com (vpn1-112-56.nay.redhat.com [10.66.112.56]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p447mH7d004681 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 4 May 2011 03:48:19 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p447m6f0012502; Wed, 4 May 2011 15:48:08 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p447m3mb012501; Wed, 4 May 2011 15:48:03 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Wed, 4 May 2011 15:48:03 +0800 From: Daniel Veillard To: "Paul B. Cameron" Message-ID: <20110504074803.GW21035@redhat.com> References: <000001cc08db$f6602d60$e3208820$@b.cameron@kepware.com> <4DBEFF61.5050204@gmail.com> <000001cc0901$b6238460$226a8d20$@b.cameron@kepware.com> <20110503024650.GO21035@redhat.com> <000001cc09af$a7ccded0$f7669c70$@b.cameron@kepware.com> <000301cc09ca$4cc27d40$e64777c0$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000301cc09ca$4cc27d40$e64777c0$@b.cameron@kepware.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 Cc: xml@gnome.org Subject: Re: [xml] SelectSingleNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 04 May 2011 07:48:33 -0000 On Tue, May 03, 2011 at 03:42:56PM -0400, Paul B. Cameron wrote: > I believe I'm able to answer my own questions: > > 1. Use xmlGetNodePath to build the node path instead of rolling a custom > function. right ! > 2. There is no need to return a copy of a node retrieved by an XPath > evaluation - node pointers returned by the query point to the actual node > memory in the tree. These nodes do not become invalid when the query object > or context are freed. And right ! ... except for the nasty case of namespace nodes, where libxml2 model and XPath data model don't match and as a result the namespace nodes returned in an XPath query don't come from the tree (but are freed when the XPath object is freed). aniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From paul.b.cameron@kepware.com Thu May 5 17:59:01 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 82A42750198 for ; Thu, 5 May 2011 17:59:01 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: 0.145 X-Spam-Level: X-Spam-Status: No, score=0.145 tagged_above=-999 required=2 tests=[BAYES_40=-0.001, HTML_MESSAGE=0.001, MSGID_MULTIPLE_AT=0.001, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 GFxsdoXKDoMB for ; Thu, 5 May 2011 17:58:56 +0000 (UTC) Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id 8BA8C7500E8 for ; Thu, 5 May 2011 17:58:47 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id A51B03C0; Thu, 05 May 2011 13:57:47 -0400 From: "Paul B. Cameron" To: Date: Thu, 5 May 2011 13:57:46 -0400 Message-ID: <000001cc0b4d$f0a95bc0$d1fc1340$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0001_01CC0B2C.6997BBC0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwLTfB6FIbgiqi5Q8Cmo7YkWU0URg== Content-Language: en-us Subject: [xml] XML Schema: Validating an instance document with multiple schemas X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 05 May 2011 17:59:01 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0001_01CC0B2C.6997BBC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I'm porting a Win32 app that uses MSXML to a POSIX environment that will use libxml2. This app uses XML schema for validation. There is basically a 'main' schema that (among other things) includes an element with a complex type sequence of 'any' type: The idea is that the app data model is extensible, and that the 'any' node will contain data that will declare a new namespace and be validated by a different schema. These schemas are not currently designed to use schema include (xs:include). The MSXML parser allows multiple schemas to be loaded into a collection, which is then associated with the document that is to be validated. However, it looks like the libxml2 schema API is designed to work with one schema/context at a time. Am I correct? Thanks in advance, - Paul ------=_NextPart_000_0001_01CC0B2C.6997BBC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’m = porting a Win32 app that uses MSXML to a POSIX environment that will use = libxml2. This app uses XML schema for validation. =

 =

There is = basically a ‘main’ schema that (among other things) includes = an element with a complex type sequence of ‘any’ = type:

 =

<xs:elem= ent name=3D"Properties" = minOccurs=3D"0">

  = ;        = <xs:complexType>

  = ;            =      <xs:sequence>

  = ;            =      =           <xs:any = namespace=3D"##other" processContents=3D"strict" = minOccurs=3D"0" = maxOccurs=3D"unbounded"/>

  = ;            =      </xs:sequence>

  = ;        = </xs:complexType>

</xs:ele= ment>

 =

The idea = is that the app data model is extensible, and that the ‘any’ = node will contain data that will declare a new namespace and be = validated by a different schema. These schemas are not currently = designed to use schema include (xs:include).

 =

The MSXML = parser allows multiple schemas to be loaded into a collection, which is = then associated with the document that is to be validated. However, it = looks like the libxml2 schema API is designed to work with one = schema/context at a time. Am I correct?

 =

Thanks in = advance,

- = Paul

 =

 =

------=_NextPart_000_0001_01CC0B2C.6997BBC0-- From preet3039@gmail.com Thu May 5 19:16:49 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6F4727501BF for ; Thu, 5 May 2011 19:16:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.904 X-Spam-Level: X-Spam-Status: No, score=-0.904 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_GZ=0.077, TW_IB=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=no 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 zdFbOEDToSG8 for ; Thu, 5 May 2011 19:16:47 +0000 (UTC) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by menubar.gnome.org (Postfix) with ESMTP id 6449075007B for ; Thu, 5 May 2011 19:16:38 +0000 (UTC) Received: by iwn33 with SMTP id 33so3926043iwn.27 for ; Thu, 05 May 2011 12:16:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=zNwfdojxAWqy9LyB+GUxSOkoDx7ef+t+vlHdwa/PGVI=; b=Pe3l2oE6lysj7WiONUYzVYZ6Fnc/UqDvzPtSQvXpYnOx6m1Kh3UV6Wc29GYBe+Rsek 20mjmatJQeGyMUadEtQcM5XbV0HudVrL4Uinhx0qluC8ATzdOz1CDKj0qrcXGNF+YKPt CMzMA6+xyBaEOBRNihzyS+FZpi+xWKWFCkG8M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=grKGMlm0j5pdV7F4N9+MApwFRBsgxAjylxSScy/C3McPWTccHniP99p6THEiZaHoq1 pWRh7ylFZ+bbtKGkVwIdqSD2UemjtYf+BuOi/YEf28pPHIolIJhd4ShijWm937wqy3Xy as1WDbeD73zDuTAghrVnYXhPOwV6Vw065h3mE= MIME-Version: 1.0 Received: by 10.42.150.71 with SMTP id z7mr1426327icv.483.1304622997376; Thu, 05 May 2011 12:16:37 -0700 (PDT) Received: by 10.231.156.65 with HTTP; Thu, 5 May 2011 12:16:37 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 May 2011 15:16:37 -0400 Message-ID: From: "preet $" To: xml@gnome.org Content-Type: multipart/alternative; boundary=90e6ba212301530e6c04a28c3629 Subject: [xml] gzdirect could not be located in the dynamic link library zlib1.dll X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 05 May 2011 19:16:49 -0000 --90e6ba212301530e6c04a28c3629 Content-Type: text/plain; charset=ISO-8859-1 Hi I am trying to run the example provided with libxml2-2.2.7-win32.zip, but I get the message "The procedure entry point gzdirect could not be located in the dynamic link library zlib1.dll" I don't know how to proceed with this issue. Is this because of wrong version of zlib. The one I have is copied from another application on my system and it is compiled on Dec 10. Any help would be great. thanks in advance Preet --90e6ba212301530e6c04a28c3629 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi
=A0
=A0=A0 I am trying to run the example provided with libxml2-2.2.7-win3= 2.zip, but I get the message "The procedure entry point gzdirect could= not be located in the dynamic link library zlib1.dll" I don't kno= w how to proceed with this issue. Is this because of wrong version of=A0zli= b. The one I have is copied from another application on my system and it is= compiled on Dec 10. Any help would be great.
=A0
thanks in advance
Preet

--90e6ba212301530e6c04a28c3629-- From derhoermi@gmx.net Thu May 5 19:22:59 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E1F817501BF for ; Thu, 5 May 2011 19:22:58 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.679 X-Spam-Level: X-Spam-Status: No, score=-1.679 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, TW_BX=0.077, TW_GZ=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 mgf7yIArCF0f for ; Thu, 5 May 2011 19:22:56 +0000 (UTC) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by menubar.gnome.org (Postfix) with SMTP id 8364075007B for ; Thu, 5 May 2011 19:22:46 +0000 (UTC) Received: (qmail invoked by alias); 05 May 2011 19:22:44 -0000 Received: from dslb-094-223-189-018.pools.arcor-ip.net (EHLO HIVE) [94.223.189.18] by mail.gmx.net (mp063) with SMTP; 05 May 2011 21:22:44 +0200 X-Authenticated: #723575 X-Provags-ID: V01U2FsdGVkX1+xo7wPsyexZ6h+xxTCFOdCf/HDt2Pmg58HxBAxi5 7NZJHZSc00Pg1c From: Bjoern Hoehrmann To: "preet $" Date: Thu, 05 May 2011 21:22:50 +0200 Message-ID: References: In-Reply-To: X-Mailer: Forte Agent 3.3/32.846 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Y-GMX-Trusted: 0 Cc: xml@gnome.org Subject: Re: [xml] gzdirect could not be located in the dynamic link library zlib1.dll X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 05 May 2011 19:22:59 -0000 * preet $ wrote: > I am trying to run the example provided with libxml2-2.2.7-win32.zip, but >I get the message "The procedure entry point gzdirect could not be located >in the dynamic link library zlib1.dll" I don't know how to proceed with this >issue. Is this because of wrong version of zlib. The one I have is copied >from another application on my system and it is compiled on Dec 10. Any help >would be great. If you are using binaries from ftp://ftp.zlatkovic.com/libxml/ then you should also use the latest zlib binaries from there rather then copying arbitrary binaries from other applications (there may be any number of reasons why the DLLs would be incompatible). -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de Am Badedeich 7 · Telefon: +49(0)160/4415681 · http://www.bjoernsworld.de 25899 Dagebüll · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ From veillard@redhat.com Fri May 6 03:24:43 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AD7887500E6 for ; Fri, 6 May 2011 03:24:43 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 Ne2Dlb0Rbqlp for ; Fri, 6 May 2011 03:24:41 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 376527500B8 for ; Fri, 6 May 2011 03:24:32 +0000 (UTC) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p463OVqx013892 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 5 May 2011 23:24:31 -0400 Received: from paphio.veillard.com (vpn1-112-66.nay.redhat.com [10.66.112.66]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p463ORdL001943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 5 May 2011 23:24:30 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p463OITp021150; Fri, 6 May 2011 11:24:20 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p463OF8p021148; Fri, 6 May 2011 11:24:15 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Fri, 6 May 2011 11:24:15 +0800 From: Daniel Veillard To: "Paul B. Cameron" Message-ID: <20110506032415.GA3436@redhat.com> References: <000001cc0b4d$f0a95bc0$d1fc1340$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000001cc0b4d$f0a95bc0$d1fc1340$@b.cameron@kepware.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Cc: xml@gnome.org Subject: Re: [xml] XML Schema: Validating an instance document with multiple schemas X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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: Fri, 06 May 2011 03:24:43 -0000 On Thu, May 05, 2011 at 01:57:46PM -0400, Paul B. Cameron wrote: [...] > The idea is that the app data model is extensible, and that the 'any' node > will contain data that will declare a new namespace and be validated by a > different schema. These schemas are not currently designed to use schema > include (xs:include). > > > > The MSXML parser allows multiple schemas to be loaded into a collection, > which is then associated with the document that is to be validated. However, > it looks like the libxml2 schema API is designed to work with one > schema/context at a time. Am I correct? I think so, yes. On the other hand you can make multiple validation pass, might be a bit harder when streaming but should be doable. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From fg@4js.com Fri May 6 07:56:45 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E03527500E1 for ; Fri, 6 May 2011 07:56:44 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.756 X-Spam-Level: X-Spam-Status: No, score=-1.756 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 zfux5TTQjFuY for ; Fri, 6 May 2011 07:56:42 +0000 (UTC) X-Greylist: delayed 856 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 06 May 2011 07:56:42 UTC Received: from mail231.strasbourg.4js.com (mail231.strasbourg.4js.com [92.103.31.231]) by menubar.gnome.org (Postfix) with ESMTP id 47AD87501E4 for ; Fri, 6 May 2011 07:56:33 +0000 (UTC) Received: from [10.0.0.170] (cube.strasbourg.4js.com [10.0.0.170]) by mail231.strasbourg.4js.com (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p467gFoc003766; Fri, 6 May 2011 09:42:15 +0200 Message-ID: <4DC3A6B2.6020902@4js.com> Date: Fri, 06 May 2011 09:43:46 +0200 From: Frank Gross Organization: Four J's Development Tools User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; fr; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: veillard@redhat.com References: <000001cc0b4d$f0a95bc0$d1fc1340$@b.cameron@kepware.com> <20110506032415.GA3436@redhat.com> In-Reply-To: <20110506032415.GA3436@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: clamav-milter 0.97 at mail231 X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (mail231.strasbourg.4js.com [10.10.0.1]); Fri, 06 May 2011 09:42:15 +0200 (CEST) Cc: xml@gnome.org Subject: Re: [xml] XML Schema: Validating an instance document with multiple schemas X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 06 May 2011 07:56:45 -0000 Hi, I had a similar issue, and to overcome the limitation, I wrote a wrapper that modifies the "main" schema with new tag for each secondary schema. Then you can validate in one pass. Hope it helps. Frank Le 06/05/2011 05:24, Daniel Veillard a écrit : > On Thu, May 05, 2011 at 01:57:46PM -0400, Paul B. Cameron wrote: > [...] >> The idea is that the app data model is extensible, and that the 'any' node >> will contain data that will declare a new namespace and be validated by a >> different schema. These schemas are not currently designed to use schema >> include (xs:include). >> >> >> >> The MSXML parser allows multiple schemas to be loaded into a collection, >> which is then associated with the document that is to be validated. However, >> it looks like the libxml2 schema API is designed to work with one >> schema/context at a time. Am I correct? > I think so, yes. On the other hand you can make multiple validation > pass, might be a bit harder when streaming but should be doable. > > Daniel > -- Frank GROSS Software Engineer - Web Services Four J's Development Tools - http://www.4js.com From btv1==1065d3f098c==fsmith@computrition.com Thu May 5 13:49:29 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3E6E87501B0 for ; Thu, 5 May 2011 13:49:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.678 X-Spam-Level: X-Spam-Status: No, score=-1.678 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, TW_BX=0.077, TW_CX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 v8PqX2mAaLvu for ; Thu, 5 May 2011 13:49:19 +0000 (UTC) X-Greylist: delayed 1188 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 05 May 2011 13:49:19 UTC Received: from CICUDA.computrition.com (cismtp.computrition.com [216.2.231.126]) by menubar.gnome.org (Postfix) with ESMTP id C73297501AC for ; Thu, 5 May 2011 13:49:11 +0000 (UTC) X-ASG-Debug-ID: 1304602157-3926001c0001-dGPAkn X-Barracuda-URL: http://10.10.2.19:8000/cgi-bin/mark.cgi Received: from CICW-VMXCHG2.computrition.com (localhost [127.0.0.1]) by CICUDA.computrition.com (Spam & Virus Firewall) with ESMTP id 2807419BBF8 for ; Thu, 5 May 2011 06:29:18 -0700 (PDT) Received: from CICW-VMXCHG2.computrition.com ([10.10.2.141]) by CICUDA.computrition.com with ESMTP id 4uPbUpOyng9rTjbP (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Thu, 05 May 2011 06:29:18 -0700 (PDT) X-Barracuda-Envelope-From: fsmith@computrition.com Received: from CICW-VMXCHG1.computrition.com ([fe80::182f:8607:f58b:b37f]) by CICW-VMXCHG2.computrition.com ([::1]) with mapi; Thu, 5 May 2011 06:29:18 -0700 From: Fred Smith To: "xml@gnome.org" X-ASG-Orig-Subj: compile-time error libxml2-2.7.8 Thread-Topic: compile-time error libxml2-2.7.8 Thread-Index: AcwLKG7Cc1XICdkUSjSMhx1E7elmeA== Date: Thu, 5 May 2011 13:29:17 +0000 Message-ID: <3A6C706D22664245BA46F856A04FE020ADC9@CICW-VMXCHG1.computrition.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_3A6C706D22664245BA46F856A04FE020ADC9CICWVMXCHG1computri_" MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.2.141] X-Barracuda-Start-Time: 1304602159 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-Virus-Scanned: by Barracuda Spam & Virus Firewall at computrition.com X-Mailman-Approved-At: Fri, 06 May 2011 14:52:24 +0000 Subject: [xml] compile-time error libxml2-2.7.8 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 05 May 2011 13:49:29 -0000 --_000_3A6C706D22664245BA46F856A04FE020ADC9CICWVMXCHG1computri_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi all! I'm building libxml2-2.7.8 on several different (redhat-based) platforms (u= sing a long list of --with-xxx=3Dno options,... see below for the options). The first one I tried was an up to date Centos 5.6 which went without a hit= ch. The second one is an older Centos 4.8, and with the same list of configure = options I get this output: libtool: link: ar cru .libs/testdso.a testdso.o libtool: link: ranlib .libs/testdso.a libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" = "testdso.la" ) gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -g -O2 -= pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -= Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshado= w -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-= prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls= -MT xmllint.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint.o xmllint.c mv -= f .deps/xmllint.Tpo .deps/xmllint.Po /bin/sh ./libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -pedantic -W -Wfor= mat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wform= at -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith= -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmiss= ing-prototypes -Wnested-externs -Winline -Wredundant-decls -o xmllint xml= lint.o ./libxml2.la -lz -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wretur= n-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitia= lized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -= Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs= -Winline -Wredundant-decls -o .libs/xmllint xmllint.o ./.libs/libxml2.so = -ldl -lz -lm -Wl,-rpath -Wl,/usr/local/lib ./.libs/libxml2.so: undefined reference to `xmlSAX2EndElement' ./.libs/libxml2.so: undefined reference to `xmlSAX2StartElement' collect2: ld returned 1 exit status make[2]: *** [xmllint] Error 1 make[2]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8' make: *** [all] Error 2 cat /etc/redhat-release CentOS release 4.8 (Final) Note the undefined references to xmlSAX2EndElement and xmlSAX2StartElement = in libxml2.so. Here is the list of configure options I used: ./configure --with-reader --enable-ipv6=3Dno --with-catalog=3Dno --with-deb= ug=3Dno --with-docbook=3Dno --with-ftp=3Dno --with-html=3Dno --with-pattern= =3Dno --with-push=3Dno --with-regexps=3Dno --with-sax1=3Dno --with-schemas= =3Dno --with-schematron=3Dno --with-valid=3Dno --with-writer=3Dno --with-xi= nclude=3Dno --with-xpath=3Dno --with-xptr=3Dno Gcc version: $ gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured wi= th: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr= /share/info --enable-shared --enable-threads=3Dposix --disable-checking --w= ith-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enab= le-java-awt=3Dgtk --host=3Di386-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-11) it appears to create the static library (which is my ultimate goal) so I ma= y be OK as-is, but it makes me wonder. Suggestions welcome. Fred Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x148 fax: 781-687-8884 This email and any files transmitted with it are confidential and intended = solely for the use of the individual or entity to which they are addressed.= If you have received this email in error please notify the system manager.= Please note that any views or opinions presented in this email are solely = those of the author and do not necessarily represent those of the company. = Finally, the recipient should check this email and any attachments for the = presence of viruses. The company accepts no liability for any damage caused= by any virus transmitted by this email --_000_3A6C706D22664245BA46F856A04FE020ADC9CICWVMXCHG1computri_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi all!

 

I’m building libxml2-2.7.8 on several different (redhat-based) platforms (using a long list of --with-xxx=3Dno options,… see below for the options).

 

The first one I tried was an up to date Centos 5.6 whi= ch went without a hitch.

 

The second one is an older Centos 4.8, and with the sa= me list of configure options I get this output:

 

libtool: link: ar cru .libs/testdso.a  testdso.o

libtool: link: ranlib .libs/testdso.a

libtool: link: ( cd ".libs" && rm -f "testdso.la" &&= amp; ln -s "../testdso.la" "testdso.la" )<= /p>

gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -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 -MT xmllin= t.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint.o xmllint.c mv -f .deps/xmllint= .Tpo .deps/xmllint.Po

/bin/sh ./libtool --tag=3DCC   --mode=3Dlink 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 xmllint xmllint.o ./libxml2.la  -lz&n= bsp; -lm

libtool: link: 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/xmllint xmllint.o  ./.libs/libxml2= .so -ldl -lz -lm -Wl,-rpath -Wl,/usr/local/lib

./.libs/libxml2.so: undefined reference to `xmlSAX2EndElement'

./.libs/libxml2.so: undefined reference to `xmlSAX2StartElement'<= o:p>

collect2: ld returned 1 exit status

make[2]: *** [xmllint] Error 1

make[2]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'<= /span>

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'<= /span>

make: *** [all] Error 2

 

 

cat /etc/redhat-release

CentOS release 4.8 (Final)

 

 

Note the undefined refer= ences to xmlSAX2EndElement and xmlSAX2StartElement in libxml2.so.

 

Here is the list of conf= igure options I used:

 

./configure --with-reader --enable-ipv6=3Dno --with-catalog=3Dno --with-debug=3Dno --with-docbook=3Dno --with-ftp=3Dno --with-html=3Dno --with-pattern=3Dno --= with-push=3Dno --with-regexps=3Dno --with-sax1=3Dno --with-schemas=3Dno --with-schematron= =3Dno --with-valid=3Dno --with-writer=3Dno --with-xinclude=3Dno --with-xpath=3Dno --with-xptr=3Dno

 

 

Gcc version:

$ gcc -v

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../c= onfigure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --ena= ble-shared --enable-threads=3Dposix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=3Dgtk --host=3Di386-redhat-linux

Thread model: posix

gcc version 3.4.6 20060404 (Red Hat 3.4.6-11)

 

 

it appears to create the= static library (which is my ultimate goal) so I may be OK as-is, but it makes me w= onder. Suggestions welcome.

 

Fred

 

 

Fred Smith

Senior Applications Programmer/Analyst

Computrition, Inc.

175 Middlesex Turnpike

Bedford, MA 01730

ph: 781-275-4488 x148

fax: 781-687-8884

 

--_000_3A6C706D22664245BA46F856A04FE020ADC9CICWVMXCHG1computri_-- From preet3039@gmail.com Thu May 5 17:55:21 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3DDFF750198 for ; Thu, 5 May 2011 17:55:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -0.904 X-Spam-Level: X-Spam-Status: No, score=-0.904 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_GZ=0.077, TW_IB=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=no 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 BfO393-vLjRO for ; Thu, 5 May 2011 17:55:20 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id DF6387500E8 for ; Thu, 5 May 2011 17:55:11 +0000 (UTC) Received: by iyj12 with SMTP id 12so3837462iyj.27 for ; Thu, 05 May 2011 10:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=WhgsCMCkd0ILKVeksFSjKN5UDWJl3CihC3Uv1s3+kfQ=; b=G28Gbtdu+VT51gd+EmvxCS8OCHeXdaydYm16Z1e68X2tyKMbuj0NLdRFO8B6O2ZUn3 cow5H2NxAsNsB/OoB6dDDUYdVNTFEMwwPJD7JLy6GnVHPhEDp0mKoph4Ostq4vbSaUIy GwiuSQ1DeYMzoEKcTIY1gFfw2SNLpKjZh+N1A= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=JKVccolbjaXh+RZqmb0XhRiZdsJYBj0B6ct/80iXDPjzApG5kjFeXFr9nWw7jflln4 S+SeDsY3ks1QkOSuXXFaUG8t5Lti3OnN2AaPfqJER6M/ZUIVDCpuxXOBFp2pzSAI/Pny 8yg3RhW8iQ96RDc5l9n2Ul+UZ2RxjGWfsNJ6Q= MIME-Version: 1.0 Received: by 10.231.199.77 with SMTP id er13mr1494293ibb.52.1304618109954; Thu, 05 May 2011 10:55:09 -0700 (PDT) Received: by 10.231.156.65 with HTTP; Thu, 5 May 2011 10:55:09 -0700 (PDT) Date: Thu, 5 May 2011 13:55:09 -0400 Message-ID: From: "preet $" To: xml@gnome.org Content-Type: multipart/alternative; boundary=90e6ba47682b02eabf04a28b1384 X-Mailman-Approved-At: Fri, 06 May 2011 14:52:24 +0000 Subject: [xml] gzdirect could not be located in the dynamic link library zlib1.dll X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 05 May 2011 17:55:21 -0000 --90e6ba47682b02eabf04a28b1384 Content-Type: text/plain; charset=ISO-8859-1 Hi I am trying to run the example provided with libxml2-2.2.7-win32.zip, but I get the message "The procedure entry point gzdirect could not be located in the dynamic link library zlib1.dll" I don't know how to proceed with this issue. Is this because of wrong version of zlib. The one I have is copied from another application on my system and it is compiled on Dec 10. Any help would be great. thanks in advance Preet --90e6ba47682b02eabf04a28b1384 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi
=A0
=A0=A0 I am trying to run the example provided with libxml2-2.2.7-win3= 2.zip, but I get the message "The procedure entry point gzdirect could= not be located in the dynamic link library zlib1.dll" I don't kno= w how to proceed with this issue. Is this because of wrong version of=A0zli= b. The one I have is copied from another application on my system and it is= compiled on Dec 10. Any help would be great.
=A0
thanks in advance
Preet
--90e6ba47682b02eabf04a28b1384-- From axel.roeslein@googlemail.com Tue May 10 16:48:03 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 6C4F775028C for ; Tue, 10 May 2011 16:48:03 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.689 X-Spam-Level: X-Spam-Status: No, score=-2.689 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 vALmJzwoh8ij for ; Tue, 10 May 2011 16:48:01 +0000 (UTC) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by menubar.gnome.org (Postfix) with ESMTP id D2B337505EE for ; Tue, 10 May 2011 16:03:38 +0000 (UTC) Received: by gyg13 with SMTP id 13so3625155gyg.27 for ; Tue, 10 May 2011 09:03:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=CbmTkWzF63pvHs/ghi548uZvFRA5mVvJT2iFx4HxCEw=; b=YIH+i0twIY7ml3UFW72HeYms3SCScjZgs7ZVqkYPCkTa7oCv097stezepi9oL3uKCp UFeYM0nzPPHNo3wjJJVVUJISjiyZmPDJkhWk9DD4lCY2GQQ4wkX8YIHC86827FRok1xR MaeB6qKQASA+Kep+gH7s4Mm2UOKD7KkfR+Ezc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=jaV47XCUF2hz3c7hxYSYvuGHVvn8IkfTd1tWWfIvNUQDHQveV6N8rHicEN6xVj+ahz LB38wNnd8Je458bLStTpVXBri+PXnFpeYMTdAF11SHU0N3u5wFoN/FltUHYv9O6Q1QII k0kKzeR57+1CQ0Cyxf0xvOKqCJG+yYfuSJD0U= MIME-Version: 1.0 Received: by 10.236.121.49 with SMTP id q37mr9451239yhh.3.1305043417111; Tue, 10 May 2011 09:03:37 -0700 (PDT) Received: by 10.146.168.12 with HTTP; Tue, 10 May 2011 09:03:37 -0700 (PDT) Date: Tue, 10 May 2011 18:03:37 +0200 Message-ID: From: Axel Rose To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [xml] make check failure "failed the URL passing test for urip://example.com/a b.html" X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 10 May 2011 16:48:04 -0000 Hello all, I cannot validate my compilation under Linux with "make check". Suprisingly the same compilation is fine under Darwin or Solaris. This is what I do: > ./configure --prefix=/my/install/dir --enable-shared \ --disable-dependency-tracking --without-python --without-threads \ --with-zlib="/my/install/dir" \ --with-iconv="/my/install/dir" checking host system type... i686-pc-linux-gnu [...] checking iconv.h usability... yes checking iconv.h presence... yes checking for iconv.h... yes checking for iconv... no checking for iconv in -liconv... yes checking for iconv declaration... extern size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); [...] config.status: executing depfiles commands config.status: executing libtool commands /bin/rm: cannot remove `libtoolT': No such file or directory Done configuring > make check [...] ./runtest && ./testrecurse && ./testapi && ./testchar&& ./testdict && ./runxmlconf failed the URL passing test for urip://example.com/a b.html## XML regression tests I build libiconv 1.13.1 und lib 1.2.5 from source myself. Thanks for any advice Axel From christian.merkel@w2on.com Fri May 6 16:47:34 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5AD687500D2 for ; Fri, 6 May 2011 16:47:34 +0000 (UTC) X-Quarantine-ID: X-Virus-Scanned: by amavisd-new at gnome.org X-Amavis-Alert: BAD HEADER SECTION, Non-encoded 8-bit data (char F6 hex): X-Spam-Report: ...eingegangene E-mail als m\366gliche "Spam"-N[...] X-Spam-Flag: NO X-Spam-Score: -0.453 X-Spam-Level: X-Spam-Status: No, score=-0.453 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_BRBL_LASTEXT=1.449, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=no 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 Qcbdr22u9FFX for ; Fri, 6 May 2011 16:47:30 +0000 (UTC) X-Greylist: delayed 2582 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 06 May 2011 16:47:29 UTC Received: from mail02.w2on.net (lb2.unternehmenswelt.de [83.169.49.102]) by menubar.gnome.org (Postfix) with ESMTP id 56AA475012D for ; Fri, 6 May 2011 16:47:20 +0000 (UTC) Received: from 178-25-44-64-dynip.superkabel.de ([178.25.44.64] helo=[192.168.1.20]) by lb2.unternehmenswelt.de with esmtpa (Exim 4.69) (envelope-from ) id 1QINVo-0005Q1-9K for xml@gnome.org; Fri, 06 May 2011 18:04:16 +0200 Message-ID: <4DC41C07.5020202@w2on.com> Date: Fri, 06 May 2011 18:04:23 +0200 From: Christian Merkel Organization: w2on User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Tue, 10 May 2011 17:20:41 +0000 Subject: [xml] libxml and xsltproc - set output format to pdf X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 06 May 2011 16:47:34 -0000 Hi, is it possible to change the output format form "fo" to pdf so that i dont need to use another processor / renderer like fop? xsltproc is so incredible fast in parsing my xml and xsl. no other processor i tested is that fast! good job ;) From btv1==10773195c37==fsmith@computrition.com Fri May 6 19:39:34 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3A3BE75027B for ; Fri, 6 May 2011 19:39:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.678 X-Spam-Level: X-Spam-Status: No, score=-1.678 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, TW_BX=0.077, TW_CX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 J0RDzpGEbCXa for ; Fri, 6 May 2011 19:39:20 +0000 (UTC) X-Greylist: delayed 1017 seconds by postgrey-1.32 at menubar.gnome.org; Fri, 06 May 2011 19:39:20 UTC Received: from CICUDA.computrition.com (cismtp.computrition.com [216.2.231.126]) by menubar.gnome.org (Postfix) with ESMTP id D04007500DB for ; Fri, 6 May 2011 19:39:12 +0000 (UTC) X-ASG-Debug-ID: 1304709731-4923001a0000-dGPAkn X-Barracuda-URL: http://10.10.2.19:8000/cgi-bin/mark.cgi Received: from CICW-VMXCHG2.computrition.com (localhost [127.0.0.1]) by CICUDA.computrition.com (Spam & Virus Firewall) with ESMTP id EA594A49FA for ; Fri, 6 May 2011 12:22:11 -0700 (PDT) Received: from CICW-VMXCHG2.computrition.com ([10.10.2.141]) by CICUDA.computrition.com with ESMTP id Fdcnir1SBNzmiRrS (version=TLSv1 cipher=AES128-SHA bits=128 verify=NO) for ; Fri, 06 May 2011 12:22:11 -0700 (PDT) X-Barracuda-Envelope-From: fsmith@computrition.com Received: from CICW-VMXCHG1.computrition.com ([fe80::182f:8607:f58b:b37f]) by CICW-VMXCHG2.computrition.com ([::1]) with mapi; Fri, 6 May 2011 12:22:11 -0700 From: Fred Smith To: "xml@gnome.org" X-ASG-Orig-Subj: RE: compile-time error libxml2-2.7.8 Thread-Topic: compile-time error libxml2-2.7.8 Thread-Index: AcwLKG7Cc1XICdkUSjSMhx1E7elmeAA8/F2A Date: Fri, 6 May 2011 19:22:08 +0000 Message-ID: <3A6C706D22664245BA46F856A04FE020AFC2@CICW-VMXCHG1.computrition.com> References: <3A6C706D22664245BA46F856A04FE020ADC9@CICW-VMXCHG1.computrition.com> In-Reply-To: <3A6C706D22664245BA46F856A04FE020ADC9@CICW-VMXCHG1.computrition.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: multipart/alternative; boundary="_000_3A6C706D22664245BA46F856A04FE020AFC2CICWVMXCHG1computri_" MIME-Version: 1.0 X-Barracuda-Connect: UNKNOWN[10.10.2.141] X-Barracuda-Start-Time: 1304709731 X-Barracuda-Encrypted: AES128-SHA X-Barracuda-Virus-Scanned: by Barracuda Spam & Virus Firewall at computrition.com X-Mailman-Approved-At: Tue, 10 May 2011 17:20:40 +0000 Subject: Re: [xml] compile-time error libxml2-2.7.8 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 06 May 2011 19:39:34 -0000 --_000_3A6C706D22664245BA46F856A04FE020AFC2CICWVMXCHG1computri_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Well, no one has responded, but that's OK. Having applied my thinking cap, = it seems obvious that if xmllint wants to do SAX2 stuff, that it's gonna fa= il to build if the underlying library doesn't contain the necessary bits. Nevertheless, having disabled all those ./configure options, I get final (s= tatic) executables of only slightly over half the size, which is where I wa= nted to be. Thanks, Daniel, et al, for the great toolbox! Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x148 fax: 781-687-8884 From: xml-bounces@gnome.org [mailto:xml-bounces@gnome.org] On Behalf Of Fre= d Smith Sent: Thursday, May 05, 2011 9:29 AM To: xml@gnome.org Subject: [xml] compile-time error libxml2-2.7.8 Hi all! I'm building libxml2-2.7.8 on several different (redhat-based) platforms (u= sing a long list of --with-xxx=3Dno options,... see below for the options). The first one I tried was an up to date Centos 5.6 which went without a hit= ch. The second one is an older Centos 4.8, and with the same list of configure = options I get this output: libtool: link: ar cru .libs/testdso.a testdso.o libtool: link: ranlib .libs/testdso.a libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" = "testdso.la" ) gcc -DHAVE_CONFIG_H -I. -I./include -I./include -D_REENTRANT -g -O2 -= pedantic -W -Wformat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -= Wtrigraphs -Wformat -Wchar-subscripts -Wuninitialized -Wparentheses -Wshado= w -Wpointer-arith -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-= prototypes -Wmissing-prototypes -Wnested-externs -Winline -Wredundant-decls= -MT xmllint.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint.o xmllint.c mv -= f .deps/xmllint.Tpo .deps/xmllint.Po /bin/sh ./libtool --tag=3DCC --mode=3Dlink gcc -g -O2 -pedantic -W -Wfor= mat -Wunused -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wform= at -Wchar-subscripts -Wuninitialized -Wparentheses -Wshadow -Wpointer-arith= -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmiss= ing-prototypes -Wnested-externs -Winline -Wredundant-decls -o xmllint xml= lint.o ./libxml2.la -lz -lm libtool: link: gcc -g -O2 -pedantic -W -Wformat -Wunused -Wimplicit -Wretur= n-type -Wswitch -Wcomment -Wtrigraphs -Wformat -Wchar-subscripts -Wuninitia= lized -Wparentheses -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings -= Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs= -Winline -Wredundant-decls -o .libs/xmllint xmllint.o ./.libs/libxml2.so = -ldl -lz -lm -Wl,-rpath -Wl,/usr/local/lib ./.libs/libxml2.so: undefined reference to `xmlSAX2EndElement' ./.libs/libxml2.so: undefined reference to `xmlSAX2StartElement' collect2: ld returned 1 exit status make[2]: *** [xmllint] Error 1 make[2]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8' make: *** [all] Error 2 cat /etc/redhat-release CentOS release 4.8 (Final) Note the undefined references to xmlSAX2EndElement and xmlSAX2StartElement = in libxml2.so. Here is the list of configure options I used: ./configure --with-reader --enable-ipv6=3Dno --with-catalog=3Dno --with-deb= ug=3Dno --with-docbook=3Dno --with-ftp=3Dno --with-html=3Dno --with-pattern= =3Dno --with-push=3Dno --with-regexps=3Dno --with-sax1=3Dno --with-schemas= =3Dno --with-schematron=3Dno --with-valid=3Dno --with-writer=3Dno --with-xi= nclude=3Dno --with-xpath=3Dno --with-xptr=3Dno Gcc version: $ gcc -v Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured wi= th: ../configure --prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr= /share/info --enable-shared --enable-threads=3Dposix --disable-checking --w= ith-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enab= le-java-awt=3Dgtk --host=3Di386-redhat-linux Thread model: posix gcc version 3.4.6 20060404 (Red Hat 3.4.6-11) it appears to create the static library (which is my ultimate goal) so I ma= y be OK as-is, but it makes me wonder. Suggestions welcome. Fred Fred Smith Senior Applications Programmer/Analyst Computrition, Inc. 175 Middlesex Turnpike Bedford, MA 01730 ph: 781-275-4488 x148 fax: 781-687-8884 This email and any files transmitted with it are confidential and intended = solely for the use of the individual or entity to which they are addressed.= If you have received this email in error please notify the system manager.= Please note that any views or opinions presented in this email are solely = those of the author and do not necessarily represent those of the company. = Finally, the recipient should check this email and any attachments for the = presence of viruses. The company accepts no liability for any damage caused= by any virus transmitted by this email --_000_3A6C706D22664245BA46F856A04FE020AFC2CICWVMXCHG1computri_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Well, no one has respond= ed, but that’s OK. Having applied my thinking cap, it seems obvious that if xmllint wants to do SAX2 stuff, that it’s gonna fail to build if the underlying library doesn’t contain the necessary bits.

 =

Nevertheless, having dis= abled all those ./configure options, I get final (static) executables of only slightly over half the size, which is where I wanted to be.

 =

Thanks, Daniel, et al, f= or the great toolbox!

 =

Fred Smith

Senior Applications Programmer/Analyst

Computrition, Inc.

175 Middlesex Turnpike

Bedford, MA 01730

ph: 781-275-4488 x148

fax: 781-687-8884

 =

From: xml-bounces@gnome.org [mailto:xml-bounces@gnome.org] On Behalf Of Fred Smith
Sent: Thursday, May 05, 2011 9:29 AM
To: xml@gnome.org
Subject: [xml] compile-time error libxml2-2.7.8

 

Hi all!

 

I’m building libxml2-= 2.7.8 on several different (redhat-based) platforms (using a long list of --with-xxx=3Dno options,… se= e below for the options).

 

The first one I tried was a= n up to date Centos 5.6 which went without a hitch.

 

The second one is an older = Centos 4.8, and with the same list of configure options I get this output:

 

libtool: link: ar cru .libs/testdso.a&n= bsp; testdso.o

libtool: link: ranlib .libs/testdso.a

libtool: link: ( cd ".libs" && rm -f "testdso.la" && ln -s "../testdso.la" "testdso.la" )

gcc -DHAVE_CONFIG_H -I. -I./include -I./include  -D_REENTRANT      -g -O2 -pedant= ic -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 -MT xmllint.o -MD -MP -MF .deps/xmllint.Tpo -c -o xmllint= .o xmllint.c mv -f .deps/xmllint.Tpo .deps/xmllint.Po

/bin/sh ./libtool --tag=3DCC   --mode=3Dlink 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 xmllint xmllint.o ./libxml2.la  -lz  -lm

libtool: link: 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/xmllint xmllint.o  ./.libs/libxml2.so -ldl = -lz -lm -Wl,-rpath -Wl,/usr/local/lib

./.libs/libxml2.so: undefined reference to `xmlSAX2EndElement'

./.libs/libxml2.so: undefined reference to `xmlSAX2StartElement'

collect2: ld returned 1 exit status

make[2]: *** [xmllint] Error 1

make[2]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/home/fredex/programs/libxml2/libxml2-2.7.8'

make: *** [all] Error 2

 

 

cat /etc/redhat-release

CentOS release 4.8 (Final)

 

 

Note the undefined references to xmlSAX2EndElement and xmlSAX2StartElement in libxml2.so.

&n= bsp;

Here is= the list of configure options I used:

 

./configure --with-reader --enable-ipv6= =3Dno --with-catalog=3Dno --with-debug=3Dno --with-docbook=3Dno --with-ftp=3Dno --with-html=3Dno --with-pattern=3Dno --with-push=3Dno --with-regexps=3Dno --with-sax1=3Dno --with-schemas=3Dno --with-schematron=3Dno --with-valid=3D= no --with-writer=3Dno --with-xinclude=3Dno --with-xpath=3Dno --with-xptr=3Dno<= o:p>

 

 

Gcc version:

$ gcc -v

Reading specs from /usr/lib/gcc/i386-redhat-linux/3.4.6/specs Configured with: ../configure --= prefix=3D/usr --mandir=3D/usr/share/man --infodir=3D/usr/share/info --enable-shared --enable-threads=3Dposix --disable-checking --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-java-awt=3Dgtk --host=3Di386-redhat-linux

Thread model: posix

gcc version 3.4.6 20060404 (Red Hat 3.4= .6-11)

 

 

it appe= ars to create the static library (which is my ultimate goal) so I may be OK as-is,= but it makes me wonder. Suggestions welcome.

&n= bsp;

Fred

 

 

Fred Smith

Senior Applications Programmer/Analyst=

Computrition, Inc.

175 Middlesex Turnpike

Bedford, MA 01730

ph: 781-275-4488 x148

fax: 781-687-8884

 

--_000_3A6C706D22664245BA46F856A04FE020AFC2CICWVMXCHG1computri_-- From ensonic@hora-obscura.de Wed May 11 12:25:17 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D0F1B750152 for ; Wed, 11 May 2011 12:25:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.91 X-Spam-Level: X-Spam-Status: No, score=-1.91 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 ZBN-FY55F-Ko for ; Wed, 11 May 2011 12:25:16 +0000 (UTC) X-Greylist: delayed 576 seconds by postgrey-1.32 at menubar.gnome.org; Wed, 11 May 2011 12:25:16 UTC Received: from smtp.hora-obscura.de (hora-obscura.de [213.133.109.209]) by menubar.gnome.org (Postfix) with ESMTP id 0961175013E for ; Wed, 11 May 2011 12:25:07 +0000 (UTC) Received: from smtp.hora-obscura.de (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPS id EEAD111C6010 for ; Wed, 11 May 2011 14:15:28 +0200 (CEST) Received: from [127.0.0.1] (server2.hora-obscura.de [213.133.109.209]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPSA id C73E211C600F for ; Wed, 11 May 2011 14:15:28 +0200 (CEST) Message-ID: <4DCA7DDE.5020608@hora-obscura.de> Date: Wed, 11 May 2011 15:15:26 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [xml] make check failure in python X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 11 May 2011 12:25:18 -0000 Hi, I am getting one test failure for the python tests: Making all in . Making all in tests ## running Python regression tests -- serialize.py error serializing HTML document 4 The delta is: - + Any idea where that comes from? Stefan From ensonic@hora-obscura.de Wed May 11 13:36:29 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BCDB0750184 for ; Wed, 11 May 2011 13:36:29 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.91 X-Spam-Level: X-Spam-Status: No, score=-1.91 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 dmVO1SfiCVSu for ; Wed, 11 May 2011 13:36:27 +0000 (UTC) Received: from smtp.hora-obscura.de (hora-obscura.de [213.133.109.209]) by menubar.gnome.org (Postfix) with ESMTP id 53CC975017A for ; Wed, 11 May 2011 13:36:18 +0000 (UTC) Received: from smtp.hora-obscura.de (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPS id 4F18BAF82DF for ; Wed, 11 May 2011 15:36:17 +0200 (CEST) Received: from [127.0.0.1] (server2.hora-obscura.de [213.133.109.209]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPSA id 268F8AF8055 for ; Wed, 11 May 2011 15:36:17 +0200 (CEST) Message-ID: <4DCA90C6.6040507@hora-obscura.de> Date: Wed, 11 May 2011 16:36:06 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: [xml] wrong fix in commit 14b56439 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 11 May 2011 13:36:30 -0000 $ git show 14b56439 commit 14b5643947845df089376106517c4f7ba061e4b0 Author: Daniel Veillard Date: Thu Mar 9 18:41:40 2006 +0000 more cleanups based on coverity reports. Daniel * relaxng.c xmlschemas.c xmlschemastypes.c: more cleanups based on coverity reports. you added /* * Coverity detected an overrun in daysInMonth * of size 12 at position 12 with index variable "((r)->mon - 1)" */ if (tmon < 0) tmon = 0; if (tmon > 12) tmon = 12; but imho tmon should be 0..11 or 1..12, but not 0..12. I lean towards 0..11 as you call MAX_DAYINMONTH(tyr, tmon); which does tmon-1. For similar reasons I wonder about long tmon = (long) MODULO_RANGE((int)r->mon-1, 1, 13); long tyr = r->year + (long)FQUOTIENT_RANGE((int)r->mon-1, 1, 13); shouldn't that be either long tmon = (long) MODULO_RANGE((int)r->mon, 1, 13); long tyr = r->year + (long)FQUOTIENT_RANGE((int)r->mon, 1, 13); or long tmon = (long) MODULO_RANGE((int)r->mon-1, 0, 12); long tyr = r->year + (long)FQUOTIENT_RANGE((int)r->mon-1, 0, 12); Stefan From ensonic@hora-obscura.de Wed May 11 14:59:46 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EDC0D7501E0 for ; Wed, 11 May 2011 14:59:45 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.91 X-Spam-Level: X-Spam-Status: No, score=-1.91 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 jjoPFRokXZZi for ; Wed, 11 May 2011 14:59:43 +0000 (UTC) Received: from smtp.hora-obscura.de (hora-obscura.de [213.133.109.209]) by menubar.gnome.org (Postfix) with ESMTP id 9FC057501C0 for ; Wed, 11 May 2011 14:59:34 +0000 (UTC) Received: from smtp.hora-obscura.de (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPS id BDEF5AF82DF for ; Wed, 11 May 2011 16:59:32 +0200 (CEST) Received: from [127.0.0.1] (server2.hora-obscura.de [213.133.109.209]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPSA id 6CF18AF8055 for ; Wed, 11 May 2011 16:59:32 +0200 (CEST) Message-ID: <4DCAA445.6060900@hora-obscura.de> Date: Wed, 11 May 2011 17:59:17 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org Content-Type: multipart/mixed; boundary="------------060004000301090509020908" Subject: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 11 May 2011 14:59:46 -0000 This is a multi-part message in MIME format. --------------060004000301090509020908 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi, independent from the other patches I am sending, these are quite straight forward. Stefan --------------060004000301090509020908 Content-Type: text/x-patch; name="0035-configure-support-silent-automake-rules-if-possible.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0035-configure-support-silent-automake-rules-if-possible.pat"; filename*1="ch" >From a5d84365afa4581d183fe93c53ef4392d86d2fa2 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 10 May 2011 10:34:41 +0300 Subject: [PATCH 35/39] configure: support silent automake rules if possible This gives us a much less noisy build and makes error stand out a lot more. --- configure.in | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/configure.in b/configure.in index a1d2c89..45c939e 100644 --- a/configure.in +++ b/configure.in @@ -50,6 +50,11 @@ VERSION=${LIBXML_VERSION} AM_INIT_AUTOMAKE(libxml2, $VERSION) +# Support silent build rules, requires at least automake-1.11. Disable +# by either passing --disable-silent-rules to configure or passing V=1 +# to make +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) + dnl Checks for programs. AC_PROG_CC AC_PROG_INSTALL -- 1.7.1 --------------060004000301090509020908 Content-Type: text/x-patch; name="0037-configure-acconfig.h-is-deprecated-since-autoconf-2..patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0037-configure-acconfig.h-is-deprecated-since-autoconf-2..pa"; filename*1="tch" >From 31a20e15e571233a2d1022e89bd66bbf8dc7bf97 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 10 May 2011 11:53:58 +0300 Subject: [PATCH 37/39] configure: acconfig.h is deprecated since autoconf-2.50 Remove deprecated file (leftover from autoconf-2.13). The generated config.h is the same as we already use the 3-arg versions of AC_DEFINE. --- acconfig.h | 16 ---------------- 1 files changed, 0 insertions(+), 16 deletions(-) delete mode 100644 acconfig.h diff --git a/acconfig.h b/acconfig.h deleted file mode 100644 index dedcf1d..0000000 --- a/acconfig.h +++ /dev/null @@ -1,16 +0,0 @@ -#undef PACKAGE -#undef VERSION -#undef HAVE_LIBZ -#undef HAVE_LIBM -#undef HAVE_ISINF -#undef HAVE_ISNAN -#undef HAVE_LIBHISTORY -#undef HAVE_LIBREADLINE -#undef HAVE_LIBPTHREAD -#undef HAVE_PTHREAD_H - -/* Define if IPV6 support is there */ -#undef SUPPORT_IP6 - -/* Define if getaddrinfo is there */ -#undef HAVE_GETADDRINFO -- 1.7.1 --------------060004000301090509020908 Content-Type: text/x-patch; name="0038-runxmlconf-update-to-latest-testsuite-version.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename*0="0038-runxmlconf-update-to-latest-testsuite-version.patch" >From 5c1cacee8490f9aa552d86b78694b25bb5e17c1b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Tue, 10 May 2011 13:06:09 +0300 Subject: [PATCH 38/39] runxmlconf: update to latest testsuite version --- runxmlconf.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/runxmlconf.c b/runxmlconf.c index 810f281..8d94122 100644 --- a/runxmlconf.c +++ b/runxmlconf.c @@ -516,7 +516,7 @@ static void xmlconfInfo(void) { fprintf(stderr, " you need to fetch and extract the\n"); fprintf(stderr, " latest XML Conformance Test Suites\n"); - fprintf(stderr, " http://www.w3.org/XML/Test/xmlts20080205.tar.gz\n"); + fprintf(stderr, " http://www.w3.org/XML/Test/xmlts20080827.tar.gz\n"); fprintf(stderr, " see http://www.w3.org/XML/Test/ for informations\n"); } -- 1.7.1 --------------060004000301090509020908-- From bruce.cartland@pobox.com Thu May 12 13:47:26 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4448375006B for ; Thu, 12 May 2011 13:47:26 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.12 X-Spam-Level: X-Spam-Status: No, score=-1.12 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, SPF_NEUTRAL=0.779] autolearn=no 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 iMQccKJLHoi7 for ; Thu, 12 May 2011 13:47:23 +0000 (UTC) X-Greylist: delayed 2339 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 12 May 2011 13:47:23 UTC Received: from netspeed.com.au (mail14.netspeed.com.au [203.31.48.14]) by menubar.gnome.org (Postfix) with ESMTP id 4DB107502FD for ; Thu, 12 May 2011 13:47:14 +0000 (UTC) X-Default-Received-SPF: pass (skip=forwardok (res=PASS)) x-ip-name=210.9.139.144; User-Agent: K-9 Mail for Android MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----TDJCMSE0VTKNEWADBW5SJNQ9RM3GK8" From: Bruce Cartland Date: Thu, 12 May 2011 23:08:07 +1000 To: xml@gnome.org Message-ID: <28b78326-b77f-47ec-a2e9-40da5c3fa032@email.android.com> X-Authenticated-User: cartland@netspeed.com.au Subject: [xml] Clearing nsDef after xmlDocCopyNode X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 12 May 2011 13:47:26 -0000 ------TDJCMSE0VTKNEWADBW5SJNQ9RM3GK8 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 I'm using xmlDocCopyNode to "clone" a node from one document into another = In the source node * "ns" value is set to the namespace * "nsDef" is NULL = After xmlDocCopyNode: In the destination node (newnode) * "ns" value is= set to the namespace * "nsDef" is set to the same as "ns" The namespace i= s already set at the document root. So I just do newnode->nsDef =3D NULL; = Is this valid? Seems hacky but I couldn't see an API method to clear the n= amespace from the node. Thanks ------TDJCMSE0VTKNEWADBW5SJNQ9RM3GK8 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I'm using xmlDocCopyNode to "clone" a node from one document = into another

In the source node
* "ns" value is set= to the namespace
* "nsDef" is NULL

After xmlDocCop= yNode:

In the destination node (newnode)
* "ns" val= ue is set to the namespace
* "nsDef" is set to the same as &q= uot;ns"

The namespace is already set at the document root. So= I just do

newnode->nsDef =3D NULL;

Is this valid? See= ms hacky but I couldn't see an API method to clear the namespace from t= he node.

Thanks ------TDJCMSE0VTKNEWADBW5SJNQ9RM3GK8-- From thomas_floodeenjr@mentor.com Thu May 12 20:58:56 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D330B750373 for ; Thu, 12 May 2011 20:58:56 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.669 X-Spam-Level: X-Spam-Status: No, score=-1.669 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] autolearn=no 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 xEpPvhGa3LQW for ; Thu, 12 May 2011 20:58:54 +0000 (UTC) Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by menubar.gnome.org (Postfix) with ESMTP id 5E3F27501D8 for ; Thu, 12 May 2011 20:58:45 +0000 (UTC) Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1QKcy3-0007nI-Q0 from thomas_floodeenjr@mentor.com for xml@gnome.org; Thu, 12 May 2011 13:58:43 -0700 Received: from SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Thu, 12 May 2011 13:58:43 -0700 Received: from NA-MBX-01.mgc.mentorg.com ([169.254.1.74]) by SVR-ORW-FEM-05.mgc.mentorg.com ([147.34.97.43]) with mapi id 14.01.0270.001; Thu, 12 May 2011 13:58:43 -0700 From: "Floodeenjr, Thomas" To: "xml@gnome.org" Thread-Topic: correct version of libxml2 Thread-Index: AcwQ51dfoGSjszmSQUKvYLglMopqhQ== Date: Thu, 12 May 2011 20:58:42 +0000 Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [147.34.91.1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 12 May 2011 20:58:43.0634 (UTC) FILETIME=[60EA0120:01CC10E7] Subject: Re: [xml] correct version of libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 12 May 2011 20:58:57 -0000 Subject: RE: correct version of libxml2 Daniel, After having removed calls to xmlCleanupParser() to fix the crash on UNIX, = we now get this exception on Windows while exiting our application. This le= ads to a crash. If we put the call back in to xmlCleanupParser(), the excep= tion and crash go away. > libxml2.dll!__xmlParserInputBufferCreateFilename(const char * URI=3D0x148= ef090, xmlCharEncoding enc=3D409135704) Line 2498 + 0x9 bytes C libxml2.dll!xmlDefaultExternalEntityLoader(const char * URL=3D0x1862ea58,= const char * ID=3D0x00000000, _xmlParserCtxt * ctxt=3D0x148ef090) Line 38= 85 + 0x7 bytes C libxml2.dll!xmlLoadExternalEntity(const char * URL=3D0x1862ea58, const ch= ar * ID=3D0x00000000, _xmlParserCtxt * ctxt=3D0x148ef090) Line 3945 + 0x11= bytes C libxml2.dll!xmlCreateURLParserCtxt(const char * filename=3D0x1862ea58, in= t options=3D0) Line 13516 + 0x17 bytes C libxml2.dll!xmlParseFile(const char * filename=3D0x0a070418) Line 13667 = + 0x11 bytes C Are there situations where we do want to call xmlCleanupParser() on Windows= , but not Linux/UNIX? It appears the code does different things on Windows = than Linux/UNIX. Thanks, -Tom Thomas Floodeen, Jr. Mentor Graphics BSD 720.494.1133 -----Original Message----- From: Daniel Veillard [mailto:veillard@redhat.com] Sent: Monday, April 25, 2011 6:01 PM To: Floodeenjr, Thomas Cc: xml@gnome.org Subject: Re: correct version of libxml2 On Mon, Apr 25, 2011 at 03:02:45PM +0000, Floodeenjr, Thomas wrote: > Daniel, >=20 > Yes indeed, we seem to be calling xmlCleanupParser() in many places.=20 > We will get with our engineering teams to investigate removing this=20 > call from our code. I would imagine that they thought at the time that=20 > this call was needed, as it appears to have had no ill side effects in=20 > the 2.6.x versions of libxml2. Oh, that call always deallocated all global variables used by libxml2 exc= ept that some things which were forgotten in the past are now more throroug= htly cleaned up. Things like entity definitions for predefined entities of = XML have always been cleaned up that way for example, Calling it while the library or its data were still in use has always bee= n a dangerous thing to do, then it's a matter of luck... Daniel --=20 Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http:/= /veillard.com/ | virtualization library http://libvirt.org/ From extrafu@gmail.com Fri May 13 13:09:25 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 73E217502B7 for ; Fri, 13 May 2011 13:09:25 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.534 X-Spam-Level: X-Spam-Status: No, score=-2.534 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 ahxWz73ybMgN for ; Fri, 13 May 2011 13:09:23 +0000 (UTC) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by menubar.gnome.org (Postfix) with ESMTP id 32D8E750122 for ; Fri, 13 May 2011 13:09:14 +0000 (UTC) Received: by fxm11 with SMTP id 11so3644128fxm.27 for ; Fri, 13 May 2011 06:09:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=Y4ohRHmFJW85iT/nTi6PRYD8jAKFWjHInXInRh50VK4=; b=J0wQDBJOxLadCxDTaobu3z8WPxSfvNzdE0ypBXtuySxXp1wcaRWgrlK4Gr6aVd8pil PyobYDPBnc8Gf+rbHjvrlQhZkU/jlr85nqruLsAQTRXpN9ZjLuc6PNB4l+08uYROrVsc MoZuiVEBX8WtmKGl1hRU/68CuqIAF6R0rXc0s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=Sf/GYq2v9PM5OLXQE7P6kjlXwGX0AZ8lThJwYSAVHmZqyZ/e+Desa/6EsEICHlFHTg e3HIMJBt7TFXUOaUQP8XwtrYCvE3xdbPir6xelR8jttuJllUvlI9IKoYBjWGcTVyL2T3 utD5qCR4/9qHSrgXsFmdKVanKcNOyey2WNqfw= MIME-Version: 1.0 Received: by 10.223.7.26 with SMTP id b26mr1648320fab.119.1305292153009; Fri, 13 May 2011 06:09:13 -0700 (PDT) Received: by 10.223.161.149 with HTTP; Fri, 13 May 2011 06:09:12 -0700 (PDT) Date: Fri, 13 May 2011 09:09:12 -0400 Message-ID: From: Extra Fu To: xml@gnome.org Content-Type: multipart/alternative; boundary=00151747347c1bb5b404a3280315 Subject: [xml] Encodings precedence X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 13 May 2011 13:09:25 -0000 --00151747347c1bb5b404a3280315 Content-Type: text/plain; charset=ISO-8859-1 Hello, I'm using libxm2 (2.7.6) and I've a question regarding encodings precedences. I have a array of bytes (UTF-8 HTML data) and I invoke htmlCreatePushParserCtxt() with the encoding set to XML_CHAR_ENCODING_UTF8. When I walk in the document's nodes, everything is fine unless the HTML file was poorly generated, such as: ... The charset specified here is wrong as the HTML data is truly UTF-8 (I know for sure). Nonetheless, the charset specified by the meta tag seems to take precedence over the encoding specifed in the htmlCreatePushParserCtxt(). That is, when walking in the document's nodes using that wrong charset, it seems that the xmlNodePtr's content isn't in UTF-8 - messing up my handler as it expects UTF-8 data. How can I best handle this? I could for sure strip the charset parameter of the meta tag prior creating calling htmlCreatePushParserCtxt() but I would rather "force" libxml to trust me and use UTF-8 on that poorly generated content. Thanks and best regards, --00151747347c1bb5b404a3280315 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I'm using libxm2 (2.7.6) and I've a question regardin= g encodings precedences.

I have a array of bytes (UTF-8 HTML data) a= nd I invoke htmlCreatePushParserCtxt() with the encoding set to XML_CHAR_EN= CODING_UTF8. When I walk in the document's nodes, everything is fine un= less the HTML file was poorly generated, such as:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN&q= uot;><html><head>
<meta http-equiv=3D"Content-Typ= e" content=3D"text/html; charset=3DWindows-1252">
...<= br>
The charset specified here is wrong as the HTML data is truly UTF-8 (I = know for sure). Nonetheless, the charset specified by the meta tag seems to= take precedence over the encoding specifed in the htmlCreatePushParserCtxt= ().

That is, when walking in the document's nodes using that wrong char= set, it seems that the xmlNodePtr's content isn't in UTF-8 - messin= g up my handler as it expects UTF-8 data.

How can I best handle this= ? I could for sure strip the charset parameter of the meta tag prior creati= ng calling htmlCreatePushParserCtxt() but I would rather "force" = libxml to trust me and use UTF-8 on that poorly generated content.

Thanks and best regards,
--00151747347c1bb5b404a3280315-- From veillard@redhat.com Mon May 16 08:25:13 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 0DC507500C0 for ; Mon, 16 May 2011 08:25:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 z96F9PcXAGti for ; Mon, 16 May 2011 08:25:08 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 9CC277500C3 for ; Mon, 16 May 2011 08:24:59 +0000 (UTC) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4G8Ou0x026718 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 16 May 2011 04:24:56 -0400 Received: from paphio.veillard.com (vpn1-112-87.nay.redhat.com [10.66.112.87]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4G8Oqfg029186 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 16 May 2011 04:24:55 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p4G8On0W029669; Mon, 16 May 2011 16:24:50 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p4G8OkU5029668; Mon, 16 May 2011 16:24:46 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Mon, 16 May 2011 16:24:46 +0800 From: Daniel Veillard To: Extra Fu Message-ID: <20110516082446.GR29672@redhat.com> References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="CE+1k2dSO48ffgeK" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Cc: xml@gnome.org Subject: Re: [xml] Encodings precedence X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 16 May 2011 08:25:13 -0000 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Fri, May 13, 2011 at 09:09:12AM -0400, Extra Fu wrote: > Hello, > > I'm using libxm2 (2.7.6) and I've a question regarding encodings > precedences. > > I have a array of bytes (UTF-8 HTML data) and I invoke > htmlCreatePushParserCtxt() with the encoding set to XML_CHAR_ENCODING_UTF8. > When I walk in the document's nodes, everything is fine unless the HTML file > was poorly generated, such as: > > > > ... > > The charset specified here is wrong as the HTML data is truly UTF-8 (I know > for sure). Nonetheless, the charset specified by the meta tag seems to take > precedence over the encoding specifed in the htmlCreatePushParserCtxt(). > > That is, when walking in the document's nodes using that wrong charset, it > seems that the xmlNodePtr's content isn't in UTF-8 - messing up my handler > as it expects UTF-8 data. > > How can I best handle this? I could for sure strip the charset parameter of > the meta tag prior creating calling htmlCreatePushParserCtxt() but I would > rather "force" libxml to trust me and use UTF-8 on that poorly generated > content. Yes that's a problem, you ended up hitting a libxml2 deficiency: there is no way to force ignoring the encoding defined in the document. In your case the encoding you provide is UTF-8 which is the internal one and as a result libxml2 behaves like if no hint had been given on context creation. For XML the way to process with encodings is defined in appendix F http://www.w3.org/TR/REC-xml/#sec-guessing where the "environment" encoding given is normally preempting any internally defined one. Still I think the simplest is to actually provide a way to force ignoring internal encodings when necessary, e.g. when the framework transcode automatically the docuement encoding. The attached patch does this, this includes a new option --noenc to xmllint doing this: paphio:~/XML -> cat tst.html some content paphio:~/XML -> xmllint --html --noout tst.html tst.html:2: HTML parser error : htmlCheckEncoding: unknown encoding foo ^ paphio:~/XML -> xmllint --html --noout --noenc tst.html paphio:~/XML -> I also modified the output code to not end up with a silently dropped docuement and no error on unknown internal encoding: paphio:~/XML -> xmllint --html --noenc tst.html output error : unknown encoding foo some content paphio:~/XML -> Works for XML too: paphio:~/XML -> xmllint enc.xml enc.xml:1: parser error : Unsupported encoding foo ^ paphio:~/XML -> xmllint --noenc enc.xml paphio:~/XML -> In that case the encoing is completely dropped from the output (which differenciate the processing from the case where the encoding is just passed to the parser, then the encoding= is preserved). This may not be a good option for you if you are stuck with a released version, but it's better to fix libxml2 there, and as you say right now you will have to preprocess the input... Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="noenc.patch" commit a1bc2f2ba4b5317885205d4f71c7c4b1c99ec870 Author: Daniel Veillard Date: Mon May 16 16:03:50 2011 +0800 Add options to ignore the internal encoding For both XML and HTML, the document can provide an encoding either in XMLDecl in XML, or as a meta element in HTML head. This adds options to ignore those encodings if the encoding is known in advace for example if the content had been converted before being passed to the parser. * parser.c include/libxml/parser.h: add XML_PARSE_IGNORE_ENC option for XML parsing * include/libxml/HTMLparser.h HTMLparser.c: adds the HTML_PARSE_IGNORE_ENC for HTML parsing * HTMLtree.c: fix the handling of saving when an unknown encoding is defined in meta document header * xmllint.c: add a --noenc option to activate the new parser options diff --git a/HTMLparser.c b/HTMLparser.c index 4d43b93..1a4d80d 100644 --- a/HTMLparser.c +++ b/HTMLparser.c @@ -3448,7 +3448,8 @@ static void htmlCheckEncoding(htmlParserCtxtPtr ctxt, const xmlChar *attvalue) { const xmlChar *encoding; - if ((ctxt == NULL) || (attvalue == NULL)) + if ((ctxt == NULL) || (attvalue == NULL) || + (ctxt->options & HTML_PARSE_IGNORE_ENC)) return; /* do not change encoding */ @@ -3500,7 +3501,9 @@ htmlCheckEncoding(htmlParserCtxtPtr ctxt, const xmlChar *attvalue) { xmlSwitchToEncoding(ctxt, handler); ctxt->charset = XML_CHAR_ENCODING_UTF8; } else { - ctxt->errNo = XML_ERR_UNSUPPORTED_ENCODING; + htmlParseErr(ctxt, XML_ERR_UNSUPPORTED_ENCODING, + "htmlCheckEncoding: unknown encoding %s\n", + encoding, NULL); } } @@ -6537,6 +6540,10 @@ htmlCtxtUseOptions(htmlParserCtxtPtr ctxt, int options) ctxt->options |= HTML_PARSE_NODEFDTD; options -= HTML_PARSE_NODEFDTD; } + if (options & HTML_PARSE_IGNORE_ENC) { + ctxt->options |= HTML_PARSE_IGNORE_ENC; + options -= HTML_PARSE_IGNORE_ENC; + } ctxt->dictNames = 0; return (options); } diff --git a/HTMLtree.c b/HTMLtree.c index b508583..f23ae02 100644 --- a/HTMLtree.c +++ b/HTMLtree.c @@ -481,7 +481,7 @@ htmlNodeDumpFileFormat(FILE *out, xmlDocPtr doc, if (enc != XML_CHAR_ENCODING_UTF8) { handler = xmlFindCharEncodingHandler(encoding); if (handler == NULL) - return(-1); + htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding); } } @@ -562,11 +562,9 @@ htmlDocDumpMemoryFormat(xmlDocPtr cur, xmlChar**mem, int *size, int format) { } handler = xmlFindCharEncodingHandler(encoding); - if (handler == NULL) { - *mem = NULL; - *size = 0; - return; - } + if (handler == NULL) + htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding); + } else { handler = xmlFindCharEncodingHandler(encoding); } @@ -587,7 +585,7 @@ htmlDocDumpMemoryFormat(xmlDocPtr cur, xmlChar**mem, int *size, int format) { return; } - htmlDocContentDumpFormatOutput(buf, cur, NULL, format); + htmlDocContentDumpFormatOutput(buf, cur, NULL, format); xmlOutputBufferFlush(buf); if (buf->conv != NULL) { @@ -1061,7 +1059,7 @@ htmlDocDump(FILE *f, xmlDocPtr cur) { handler = xmlFindCharEncodingHandler(encoding); if (handler == NULL) - return(-1); + htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding); } else { handler = xmlFindCharEncodingHandler(encoding); } @@ -1120,7 +1118,7 @@ htmlSaveFile(const char *filename, xmlDocPtr cur) { handler = xmlFindCharEncodingHandler(encoding); if (handler == NULL) - return(-1); + htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding); } } @@ -1181,7 +1179,7 @@ htmlSaveFileFormat(const char *filename, xmlDocPtr cur, handler = xmlFindCharEncodingHandler(encoding); if (handler == NULL) - return(-1); + htmlSaveErr(XML_SAVE_UNKNOWN_ENCODING, NULL, encoding); } htmlSetMetaEncoding(cur, (const xmlChar *) encoding); } else { diff --git a/include/libxml/HTMLparser.h b/include/libxml/HTMLparser.h index fbcc811..10a3d65 100644 --- a/include/libxml/HTMLparser.h +++ b/include/libxml/HTMLparser.h @@ -184,7 +184,8 @@ typedef enum { HTML_PARSE_NOBLANKS = 1<<8, /* remove blank nodes */ HTML_PARSE_NONET = 1<<11,/* Forbid network access */ HTML_PARSE_NOIMPLIED= 1<<13,/* Do not add implied html/body... elements */ - HTML_PARSE_COMPACT = 1<<16 /* compact small text nodes */ + HTML_PARSE_COMPACT = 1<<16,/* compact small text nodes */ + HTML_PARSE_IGNORE_ENC=1<<21 /* ignore internal document encoding hint */ } htmlParserOption; XMLPUBFUN void XMLCALL diff --git a/include/libxml/parser.h b/include/libxml/parser.h index 47b3df1..aabb96c 100644 --- a/include/libxml/parser.h +++ b/include/libxml/parser.h @@ -1105,8 +1105,9 @@ typedef enum { crash if you try to modify the tree) */ XML_PARSE_OLD10 = 1<<17,/* parse using XML-1.0 before update 5 */ XML_PARSE_NOBASEFIX = 1<<18,/* do not fixup XINCLUDE xml:base uris */ - XML_PARSE_HUGE = 1<<19, /* relax any hardcoded limit from the parser */ - XML_PARSE_OLDSAX = 1<<20 /* parse using SAX2 interface from before 2.7.0 */ + XML_PARSE_HUGE = 1<<19,/* relax any hardcoded limit from the parser */ + XML_PARSE_OLDSAX = 1<<20,/* parse using SAX2 interface before 2.7.0 */ + XML_PARSE_IGNORE_ENC= 1<<21 /* ignore internal document encoding hint */ } xmlParserOption; XMLPUBFUN void XMLCALL diff --git a/parser.c b/parser.c index 9ab8641..02a1877 100644 --- a/parser.c +++ b/parser.c @@ -9922,6 +9922,13 @@ xmlParseEncodingDecl(xmlParserCtxtPtr ctxt) { } else { xmlFatalErr(ctxt, XML_ERR_STRING_NOT_STARTED, NULL); } + + /* + * Non standard parsing, allowing the user to ignore encoding + */ + if (ctxt->options & XML_PARSE_IGNORE_ENC) + return(encoding); + /* * UTF-16 encoding stwich has already taken place at this stage, * more over the little-endian/big-endian selection is already done @@ -14561,6 +14568,10 @@ xmlCtxtUseOptionsInternal(xmlParserCtxtPtr ctxt, int options, const char *encodi ctxt->options |= XML_PARSE_OLDSAX; options -= XML_PARSE_OLDSAX; } + if (options & XML_PARSE_IGNORE_ENC) { + ctxt->options |= XML_PARSE_IGNORE_ENC; + options -= XML_PARSE_IGNORE_ENC; + } ctxt->linenumbers = 1; return (options); } diff --git a/xmllint.c b/xmllint.c index b7af32f..745330d 100644 --- a/xmllint.c +++ b/xmllint.c @@ -130,6 +130,7 @@ static int copy = 0; #endif /* LIBXML_TREE_ENABLED */ static int recovery = 0; static int noent = 0; +static int noenc = 0; static int noblanks = 0; static int noout = 0; static int nowrap = 0; @@ -2975,6 +2976,7 @@ static void usage(const char *name) { printf("\t--recover : output what was parsable on broken XML documents\n"); printf("\t--huge : remove any internal arbitrary parser limits\n"); printf("\t--noent : substitute entity references by their value\n"); + printf("\t--noenc : ignore any encoding specified inside the document\n"); printf("\t--noout : don't output the result tree\n"); printf("\t--path 'paths': provide a set of paths for resources\n"); printf("\t--load-trace : print trace of all external entites loaded\n"); @@ -3129,6 +3131,10 @@ main(int argc, char **argv) { (!strcmp(argv[i], "--noent"))) { noent++; options |= XML_PARSE_NOENT; + } else if ((!strcmp(argv[i], "-noenc")) || + (!strcmp(argv[i], "--noenc"))) { + noenc++; + options |= XML_PARSE_IGNORE_ENC; } else if ((!strcmp(argv[i], "-nsclean")) || (!strcmp(argv[i], "--nsclean"))) { options |= XML_PARSE_NSCLEAN; --CE+1k2dSO48ffgeK-- From thomas_floodeenjr@mentor.com Mon May 16 13:43:49 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22A807500FB for ; Mon, 16 May 2011 13:43:48 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.669 X-Spam-Level: X-Spam-Status: No, score=-1.669 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077] autolearn=no 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 3z5Nab5Wc40B for ; Mon, 16 May 2011 13:43:46 +0000 (UTC) Received: from relay1.mentorg.com (relay1.mentorg.com [192.94.38.131]) by menubar.gnome.org (Postfix) with ESMTP id 203497500A3 for ; Mon, 16 May 2011 13:43:30 +0000 (UTC) Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1QLy52-0000YP-SL from thomas_floodeenjr@mentor.com for xml@gnome.org; Mon, 16 May 2011 06:43:28 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 16 May 2011 06:41:16 -0700 Received: from NA-MBX-01.mgc.mentorg.com ([169.254.1.74]) by SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) with mapi id 14.01.0270.001; Mon, 16 May 2011 06:43:28 -0700 From: "Floodeenjr, Thomas" To: "xml@gnome.org" Thread-Topic: correct version of libxml2 Thread-Index: AcwDTHmr5KWp9FyxQHeYWbG0csJfdwAPYVOAAAwenfAACUwfgAP70QbQ Date: Mon, 16 May 2011 13:43:27 +0000 Message-ID: References: <20110425134731.GC1607@redhat.com> <20110426000044.GF1607@redhat.com> In-Reply-To: <20110426000044.GF1607@redhat.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [147.34.91.1] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 16 May 2011 13:41:16.0110 (UTC) FILETIME=[EDD2AEE0:01CC13CE] Subject: Re: [xml] correct version of libxml2 X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 16 May 2011 13:43:49 -0000 Hello, We have an exception thrown in libxml2. The problem exists only if there ar= e any input callbacks registered prior to xmlParseFile call. And this is ou= r case. However, those input callbacks were registered by a library that is= already unloaded and the callbacks are invalid. This is a result of xmlCle= anupParser removal since among others xmlCleanupParser call cleans also tha= t callbacks table. I see there are the following functions in libxml2 interface: void xmlCleanupInputCallbacks(void); int xmlPopInputCallbacks(void); These should take care of input callbacks removal only. We have just checke= d that if we call any of them the crash is gone - the input callbacks are c= leared correctly. However, the functions' descriptions are unclear to us: Function: xmlCleanupInputCallbacks void xmlCleanupInputCallbacks (void) clears the entire input callback table. this includes the compiled-in I/O. Function: xmlPopInputCallbacks int xmlPopInputCallbacks (void) Clear the top input callback from the input stack. this includes the compil= ed-in I/O. Returns: the number of input callback registered or -1 in case of error. Questions/problems: 1. What does compiled-in I/O mean in terms of input callbacks? Is it safe t= o clean them? 2. Which function is better for our multi-threaded environment - I would s= ay the second one, but would like to know for sure from one of the experts.= .. Thanks, -Tom Thomas Floodeen, Jr. Mentor Graphics BSD 720.494.1133 -----Original Message----- From: Floodeenjr, Thomas=20 Sent: Thursday, May 12, 2011 2:58 PM To: 'veillard@redhat.com' Subject: RE: correct version of libxml2 Daniel, After having removed calls to xmlCleanupParser() to fix the crash on UNIX, = we now get this exception on Windows while exiting our application. This le= ads to a crash. If we put the call back in to xmlCleanupParser(), the excep= tion and crash go away. > libxml2.dll!__xmlParserInputBufferCreateFilename(const char * URI=3D0x148= ef090, xmlCharEncoding enc=3D409135704) Line 2498 + 0x9 bytes C libxml2.dll!xmlDefaultExternalEntityLoader(const char * URL=3D0x1862ea58,= const char * ID=3D0x00000000, _xmlParserCtxt * ctxt=3D0x148ef090) Line 38= 85 + 0x7 bytes C libxml2.dll!xmlLoadExternalEntity(const char * URL=3D0x1862ea58, const ch= ar * ID=3D0x00000000, _xmlParserCtxt * ctxt=3D0x148ef090) Line 3945 + 0x11= bytes C libxml2.dll!xmlCreateURLParserCtxt(const char * filename=3D0x1862ea58, in= t options=3D0) Line 13516 + 0x17 bytes C libxml2.dll!xmlParseFile(const char * filename=3D0x0a070418) Line 13667 = + 0x11 bytes C Are there situations where we do want to call xmlCleanupParser() on Windows= , but not Linux/UNIX? It appears the code does different things on Windows = than Linux/UNIX. Thanks, -Tom Thomas Floodeen, Jr. Mentor Graphics BSD 720.494.1133 -----Original Message----- From: Daniel Veillard [mailto:veillard@redhat.com] Sent: Monday, April 25, 2011 6:01 PM To: Floodeenjr, Thomas Cc: xml@gnome.org Subject: Re: correct version of libxml2 -----Original Message----- From: Daniel Veillard [mailto:veillard@redhat.com]=20 Sent: Monday, April 25, 2011 6:01 PM To: Floodeenjr, Thomas Cc: xml@gnome.org Subject: Re: correct version of libxml2 On Mon, Apr 25, 2011 at 03:02:45PM +0000, Floodeenjr, Thomas wrote: > Daniel, >=20 > Yes indeed, we seem to be calling xmlCleanupParser() in many places.=20 > We will get with our engineering teams to investigate removing this=20 > call from our code. I would imagine that they thought at the time that=20 > this call was needed, as it appears to have had no ill side effects in=20 > the 2.6.x versions of libxml2. Oh, that call always deallocated all global variables used by libxml2 exc= ept that some things which were forgotten in the past are now more throroug= htly cleaned up. Things like entity definitions for predefined entities of = XML have always been cleaned up that way for example, Calling it while the library or its data were still in use has always bee= n a dangerous thing to do, then it's a matter of luck... Daniel --=20 Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http:/= /veillard.com/ | virtualization library http://libvirt.org/ From ensonic@hora-obscura.de Tue May 17 13:16:39 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 29FB37501BE for ; Tue, 17 May 2011 13:16:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham 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 6q8u1zT1W2ue for ; Tue, 17 May 2011 13:16:37 +0000 (UTC) X-Greylist: delayed 369 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 17 May 2011 13:16:36 UTC Received: from filtteri1.pp.htv.fi (filtteri1.pp.htv.fi [213.243.153.184]) by menubar.gnome.org (Postfix) with ESMTP id F27BE7500A9 for ; Tue, 17 May 2011 13:16:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by filtteri1.pp.htv.fi (Postfix) with ESMTP id CCB0E8BBE1 for ; Tue, 17 May 2011 16:10:16 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri1.pp.htv.fi [213.243.153.184]) (amavisd-new, port 10024) with ESMTP id YquBsX42b-SN for ; Tue, 17 May 2011 16:10:16 +0300 (EEST) Received: from [192.168.0.63] (cs181229052.pp.htv.fi [82.181.229.52]) by smtp5.welho.com (Postfix) with ESMTP id 8D0EF5BC002 for ; Tue, 17 May 2011 16:10:16 +0300 (EEST) Message-ID: <4DD274ED.5010502@hora-obscura.de> Date: Tue, 17 May 2011 16:15:25 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Lightning/1.0b2 Thunderbird/3.1.8 MIME-Version: 1.0 To: xml@gnome.org References: <4DCAA445.6060900@hora-obscura.de> In-Reply-To: <4DCAA445.6060900@hora-obscura.de> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 17 May 2011 13:16:39 -0000 Am 11.05.2011 17:59, schrieb Stefan Kost: > Hi, > > independent from the other patches I am sending, these are quite > straight forward. > > Stefan > Daniel, could you (or someone else) please comment on the configure patches. I can rebase and resend the remaining patches in two batches 1: build warning fixes, 2: coverity fixes Stefan From bugtrack@roumenpetrov.info Tue May 17 21:16:35 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4A5427500D2 for ; Tue, 17 May 2011 21:16:35 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham 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 CjN9xHMD2MUj for ; Tue, 17 May 2011 21:16:33 +0000 (UTC) X-Greylist: delayed 1003 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 17 May 2011 21:16:32 UTC Received: from rila.superhosting.bg (rila.superhosting.bg [91.196.124.212]) by menubar.gnome.org (Postfix) with ESMTP id 88C68750082 for ; Tue, 17 May 2011 21:16:21 +0000 (UTC) Received: from [78.128.48.21] (helo=[192.168.0.10]) by rila.superhosting.bg with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QMRMh-001mKy-KO; Tue, 17 May 2011 23:59:39 +0300 Message-ID: <4DD2E1B9.3000601@roumenpetrov.info> Date: Tue, 17 May 2011 23:59:37 +0300 From: Roumen Petrov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Stefan Kost References: <4DCAA445.6060900@hora-obscura.de> <4DD274ED.5010502@hora-obscura.de> In-Reply-To: <4DD274ED.5010502@hora-obscura.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rila.superhosting.bg X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roumenpetrov.info X-Source: X-Source-Args: X-Source-Dir: Cc: xml@gnome.org Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 17 May 2011 21:16:35 -0000 Hello Stefan, Stefan Kost wrote: > Am 11.05.2011 17:59, schrieb Stefan Kost: > >> Hi, >> >> independent from the other patches I am sending, these are quite >> straight forward. >> >> Stefan >> > Daniel, > > could you (or someone else) please comment on the configure patches. I can > rebase and resend the remaining patches in two batches 1: build warning fixes, > 2: coverity fixes > You post patches that with so many updates outside topic of the patch. It is difficult to read a patch that contain extra changes just to remove blanks at eof of line. (AC_DEFINE with three arguments) > Stefan > Roumen From ensonic@hora-obscura.de Wed May 18 06:45:13 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ADBBD7500D2 for ; Wed, 18 May 2011 06:45:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.756 X-Spam-Level: X-Spam-Status: No, score=-1.756 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 s4HaV8rgAYSV for ; Wed, 18 May 2011 06:45:12 +0000 (UTC) Received: from smtp.hora-obscura.de (hora-obscura.de [213.133.109.209]) by menubar.gnome.org (Postfix) with ESMTP id BC29E750082 for ; Wed, 18 May 2011 06:45:03 +0000 (UTC) Received: from smtp.hora-obscura.de (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPS id 04536AF8260; Wed, 18 May 2011 08:45:01 +0200 (CEST) Received: from [127.0.0.1] (server2.hora-obscura.de [213.133.109.209]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPSA id B5667AF825E; Wed, 18 May 2011 08:45:00 +0200 (CEST) Message-ID: <4DD36AE5.5010607@hora-obscura.de> Date: Wed, 18 May 2011 09:44:53 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Roumen Petrov References: <4DCAA445.6060900@hora-obscura.de> <4DD274ED.5010502@hora-obscura.de> <4DD2E15C.40804@roumenpetrov.info> In-Reply-To: <4DD2E15C.40804@roumenpetrov.info> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: xml@gnome.org Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 18 May 2011 06:45:13 -0000 Hi Roumen, On 17.05.2011 23:58, Roumen Petrov wrote: > Hello Stefan, > > Stefan Kost wrote: >> Am 11.05.2011 17:59, schrieb Stefan Kost: >> >>> Hi, >>> >>> independent from the other patches I am sending, these are quite >>> straight forward. >>> >>> Stefan >>> >> Daniel, >> >> could you (or someone else) please comment on the configure patches. >> I can >> rebase and resend the remaining patches in two batches 1: build >> warning fixes, >> 2: coverity fixes >> > You post patches that with so many updates outside topic of the patch. > It is difficult to read a patch that contain extra changes just to > remove blanks at eof of line. > (AC_DEFINE with three arguments) That was for libxslt. I'll resplit the patch there. The patches for libxml2 are whitespace clean. Stefan > >> Stefan >> > Roumen > From bugtrack@roumenpetrov.info Wed May 18 22:09:53 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 66F987503D3 for ; Wed, 18 May 2011 22:09:53 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077] autolearn=no 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 6FbShZKQZD6k for ; Wed, 18 May 2011 22:09:50 +0000 (UTC) Received: from rila.superhosting.bg (rila.superhosting.bg [91.196.124.212]) by menubar.gnome.org (Postfix) with ESMTP id 878757500C8 for ; Wed, 18 May 2011 22:09:41 +0000 (UTC) Received: from [78.128.48.21] (helo=[192.168.0.10]) by rila.superhosting.bg with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QMovy-000sY8-Ro; Thu, 19 May 2011 01:09:38 +0300 Message-ID: <4DD443A0.9090105@roumenpetrov.info> Date: Thu, 19 May 2011 01:09:36 +0300 From: Roumen Petrov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Stefan Kost References: <4DCAA445.6060900@hora-obscura.de> In-Reply-To: <4DCAA445.6060900@hora-obscura.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rila.superhosting.bg X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roumenpetrov.info X-Source: X-Source-Args: X-Source-Dir: Cc: xml@gnome.org Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 18 May 2011 22:09:53 -0000 Stefan Kost wrote: > Hi, > > independent from the other patches I am sending, these are quite > straight forward. > > Stefan > - About AM_SILENT_RULES ok Also this http://lists.gnu.org/archive/html/libtool/2011-04/msg00001.html is not libxml2 case. - about : "...acconfig.h is deprecated since autoconf-2.50..." ok - about "...runxmlconf: update to latest testsuite version...." Why to output exact version of test ? Roumen From ensonic@hora-obscura.de Thu May 19 11:58:39 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 58C2E750093 for ; Thu, 19 May 2011 11:58:39 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.756 X-Spam-Level: X-Spam-Status: No, score=-1.756 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 zEpOh41c3mu0 for ; Thu, 19 May 2011 11:58:37 +0000 (UTC) Received: from smtp.hora-obscura.de (hora-obscura.de [213.133.109.209]) by menubar.gnome.org (Postfix) with ESMTP id 3CB60750066 for ; Thu, 19 May 2011 11:58:28 +0000 (UTC) Received: from smtp.hora-obscura.de (localhost [127.0.0.1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPS id 012A4AF8315; Thu, 19 May 2011 13:58:26 +0200 (CEST) Received: from [127.0.0.1] (server2.hora-obscura.de [213.133.109.209]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.hora-obscura.de (Postfix) with ESMTPSA id AF0DCAF82DA; Thu, 19 May 2011 13:58:26 +0200 (CEST) Message-ID: <4DD505D6.10703@hora-obscura.de> Date: Thu, 19 May 2011 14:58:14 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Roumen Petrov References: <4DCAA445.6060900@hora-obscura.de> <4DD443A0.9090105@roumenpetrov.info> In-Reply-To: <4DD443A0.9090105@roumenpetrov.info> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: xml@gnome.org Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 19 May 2011 11:58:39 -0000 On 19.05.2011 01:09, Roumen Petrov wrote: > Stefan Kost wrote: >> Hi, >> >> independent from the other patches I am sending, these are quite >> straight forward. >> >> Stefan >> > > - About AM_SILENT_RULES ok > Also this > http://lists.gnu.org/archive/html/libtool/2011-04/msg00001.html is not > libxml2 case. Sorry, I can not follow. I read the link, but don't see what you mean. > > - about : "...acconfig.h is deprecated since autoconf-2.50..." ok > > - about "...runxmlconf: update to latest testsuite version...." > Why to output exact version of test ? Have a look at http://www.w3.org/XML/Test/#releases - the tests were updated (see reason below). Thanks for reviewing the patches. Daniel, are you okay with those three too? Same for libxslt? Stefan > > > Roumen > From xmlsec@roumenpetrov.info Tue May 17 21:22:06 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2CCE57501B9 for ; Tue, 17 May 2011 21:22:06 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham 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 ZVUHEZBAabfV for ; Tue, 17 May 2011 21:22:04 +0000 (UTC) X-Greylist: delayed 1425 seconds by postgrey-1.32 at menubar.gnome.org; Tue, 17 May 2011 21:22:04 UTC Received: from rila.superhosting.bg (rila.superhosting.bg [91.196.124.212]) by menubar.gnome.org (Postfix) with ESMTP id 01A567500D2 for ; Tue, 17 May 2011 21:21:55 +0000 (UTC) Received: from [78.128.48.21] (helo=[192.168.0.10]) by rila.superhosting.bg with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1QMRLC-001kqi-EJ; Tue, 17 May 2011 23:58:06 +0300 Message-ID: <4DD2E15C.40804@roumenpetrov.info> Date: Tue, 17 May 2011 23:58:04 +0300 From: Roumen Petrov User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.19) Gecko/20110430 SeaMonkey/2.0.14 MIME-Version: 1.0 To: Stefan Kost References: <4DCAA445.6060900@hora-obscura.de> <4DD274ED.5010502@hora-obscura.de> In-Reply-To: <4DD274ED.5010502@hora-obscura.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - rila.superhosting.bg X-AntiAbuse: Original Domain - gnome.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roumenpetrov.info X-Source: X-Source-Args: X-Source-Dir: X-Mailman-Approved-At: Fri, 20 May 2011 02:58:36 +0000 Cc: xml@gnome.org Subject: Re: [xml] configure maintenance X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 17 May 2011 21:22:06 -0000 Hello Stefan, Stefan Kost wrote: > Am 11.05.2011 17:59, schrieb Stefan Kost: > >> Hi, >> >> independent from the other patches I am sending, these are quite >> straight forward. >> >> Stefan >> > Daniel, > > could you (or someone else) please comment on the configure patches. I can > rebase and resend the remaining patches in two batches 1: build warning fixes, > 2: coverity fixes > You post patches that with so many updates outside topic of the patch. It is difficult to read a patch that contain extra changes just to remove blanks at eof of line. (AC_DEFINE with three arguments) > Stefan > Roumen From preet3039@gmail.com Fri May 20 18:55:04 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B53AA7502F2 for ; Fri, 20 May 2011 18:55:04 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.135 X-Spam-Level: X-Spam-Status: No, score=-1.135 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=no 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 xjribagGPNWe for ; Fri, 20 May 2011 18:55:03 +0000 (UTC) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by menubar.gnome.org (Postfix) with ESMTP id 636E8750068 for ; Fri, 20 May 2011 18:54:54 +0000 (UTC) Received: by iyj12 with SMTP id 12so5727665iyj.27 for ; Fri, 20 May 2011 11:54:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=dtE0EQR987jU7GEvpaDvzt5X6hdSIewym7yDKoj/HtI=; b=bOFTCUkjh0VpqIwUYEfeU8a/9qom4iXZXTf5GRO/lkdY9sGUVIQ1ARZr8Gmkivmtr6 +w8e6WlD+2p+91OONcmwl08H+0CsJ7eaSIfyeK3UGyB47kZ/mh/0NFyJWwT4ux76HiP+ NntK+VHdL7abHa31KdOD/JxLdlL+5yydEUWrU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=vhF96sg83u8S3QJyKUx2lxAXLMQ9W0uexv/KE0fm6cx/zuENOaiSkgNOUoq1rFObQr 6xuaA2wJpUt5SeS7fF9LzdPkQjcq1T/s5H86XGJs2fLLEUtOg+cvb8lc98R+U/zM1D+I lpXXKYX0GLuJ01GSsd0JSijSWRPrrCEakfC+Q= MIME-Version: 1.0 Received: by 10.42.158.129 with SMTP id h1mr4029215icx.450.1305917693667; Fri, 20 May 2011 11:54:53 -0700 (PDT) Received: by 10.231.21.130 with HTTP; Fri, 20 May 2011 11:54:53 -0700 (PDT) Date: Fri, 20 May 2011 14:54:53 -0400 Message-ID: From: "preet $" To: xml@gnome.org Content-Type: multipart/alternative; boundary=90e6ba6e901e3ca91904a3b9a8b0 Subject: [xml] Get default values set in schema X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 20 May 2011 18:55:04 -0000 --90e6ba6e901e3ca91904a3b9a8b0 Content-Type: text/plain; charset=ISO-8859-1 Hi, I am able to read the xml and validate it against a schema, I use the xmlReadFile and xmlSchemaValidateDoc to read the xml and validate it. I want to set the default value to the attributes, if empty. *I want to know how can I get the default values from the attributes in the schema*. Any help would be great.. thanks Preet --90e6ba6e901e3ca91904a3b9a8b0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi,
=A0
=A0=A0 I am able to read the xml and validate it against a schema, I u= se the xmlReadFile and xmlSchemaValidateDoc to read the xml and validate it= .=A0I want to set the default value to the attributes, if empty. =A0I want to know how can I get the default values from=A0the attributes in t= he schema. Any help would be=A0great..
=A0
thanks
Preet
--90e6ba6e901e3ca91904a3b9a8b0-- From mycae@yahoo.com Sun May 22 21:01:23 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 4C0047502A6 for ; Sun, 22 May 2011 21:01:23 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.844 X-Spam-Level: X-Spam-Status: No, score=-1.844 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RFC_ABUSE_POST=0.001, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 ji18dTONdeD3 for ; Sun, 22 May 2011 21:01:21 +0000 (UTC) Received: from nm13.bullet.mail.sp2.yahoo.com (nm13.bullet.mail.sp2.yahoo.com [98.139.91.83]) by menubar.gnome.org (Postfix) with SMTP id EEA0F7500A9 for ; Sun, 22 May 2011 21:01:12 +0000 (UTC) Received: from [98.139.91.66] by nm13.bullet.mail.sp2.yahoo.com with NNFMP; 22 May 2011 21:01:11 -0000 Received: from [98.139.91.23] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 22 May 2011 21:01:11 -0000 Received: from [127.0.0.1] by omp1023.mail.sp2.yahoo.com with NNFMP; 22 May 2011 21:01:11 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 95569.17115.bm@omp1023.mail.sp2.yahoo.com Received: (qmail 47143 invoked by uid 60001); 22 May 2011 21:01:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1306098070; bh=faakK8aK2jLXqFixz6BeaD8GLuC+pXWNwsk52QhMBsU=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=NkJH732ue0doxOXiexS1/9UbJ0BxZNz6A+sfObfqvhfg8WMHfud9vSSbBKC9vM+4QdwgoL4reK5G+1Dc5tVky8YsUxiMFRkI+Io+97/3KszXemQGSYsTvvqWxZ6BBM4xvImtg3sBQn8oK8TRKkQRs0vosU5ZygV6XNaZw9Wt6Bc= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=xj9YdYSh5cKwpE+j4K14SRDL+mpH35oRNLS1UW84nTzVgIm90FGwPDl5Wkk+DLBV8IADyF9cZkhk7emy4xSy9ULtTT6FTNWYGb4N7lEX+kzYb3MpkzefZyKa/GSoNl5sznbCmJbd6angYGvBO/692/j5TIEqIj3qm52bo/DcluY=; Message-ID: <707891.46286.qm@web110412.mail.gq1.yahoo.com> X-YMail-OSG: tolQUocVM1lUjfXf1E9NMzImvQLjBb.Yip8VXNEfndPKvoO hwqecYnoCFPYrxrwPeEBsYQxyhx50xgUEaTtHhuHgE_1TtYzMHJ4NPnQaYuM aT0wRHoyiTnna7LghnqcCKZFXjPAEhYu1UeL3XSmxXnIJnTb6D4ioo49b09Q Za59FaQSLOnNknr3sqkuchEtGptsKsG2eFhD0LXPCwlIVJx9NgyDNM6lQKcZ TSpCeSgnFMFb8EsCceLv_.DWOFPs_LV78olOyHbO818DR42mPir5nziASMYB Rc8t55vROwGhCInP3qGU9KQUujJ7RSYyqTfKwI.gTa1ohZeE03sYBOyq8F_I iAVbYW3KTpSRx9oZ1zFQ_saqWLdyZHu81yznJMMhm6aWNcTUp0x5hJSQo2wU Yplmx9zeBIpEqg9x.FxXb_O6YccZjRI6y_AfeiAgs0xs4NnAlBxV2XkVjDqU sLPMB.7Z7SJHhyQPw4hznaO7uvFOJ16fJMAZa80Zdfx1Y Received: from [129.67.86.189] by web110412.mail.gq1.yahoo.com via HTTP; Sun, 22 May 2011 14:01:10 PDT X-Mailer: YahooMailClassic/12.0.2 YahooMailWebService/0.8.111.303096 Date: Sun, 22 May 2011 14:01:10 -0700 (PDT) From: D Haley To: xml@gnome.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [xml] 64 bit xml2 with gcc X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 22 May 2011 21:01:23 -0000 Dear libxml list, I am using libxml2 in a project, and am having some troubles with the win64 build. I have tried using the tdm-gcc to build libxml2. This is fine under win32 -- a dll is generated, and everyone is happy. Now, when I try building libxml2 with tdm-gcc64, I get an error about undefined _imp_xmlFree and friends -- this look suspiciously like this post here: http://mail.gnome.org/archives/xml/2009-November/msg00005.html These errors "go away" if I change the ifdef on line 116 of xmlexports.h (below the workaround comment) to ifdef 1. Now, when I do that, a static library is built, even with --enable-shared. I then try to build a small test C that calls xmlCreateContext, and this works. When I try to build my larger C++ program, I get an error about multiple definitions of _imp_xmlFree and friends. I can only build an .exe if I add -Wl,--allow-multiple to the command line. Thats all fine, until I try to call xmlCreateContext (or any libxml2 function) from my program -- this triggers an instant crash. I tried many things, such as changing XMLCALL to use __declspec(dllexport), but at this point I must admit I have no idea what I am doing. So my questions are: * Are there any reliable win64 binaries +header built with gcc? The libxml2 homepage only links to some 3rd party 32 bit ones. * Any suggestions on why I am getting multiple definitions? I can't seem to cut a program out of my larger program that produces this. Why is this working with a small C program (even with multiple .o files, each calling a single function containing xmlCreateContext)? * Why, if I have a static lib, would I be getting crashes if the linking was successful?? * Is it worth trying to build a shared lib? I tried playing with a2dll, and peppering -W,-shared into the Makfiles, but ultimately got nowhere. * Is there a way past this using gcc? Visual studio is not an option as this is for a free program, and I need openmp support. I am using libxml2-2.7.7, and gcc Config flags tried are ./configure and ./configure --enable-shared --disable-static and ./configure --without-threads --without-schematron --without-pattern --without-legacy --without-html --without-ftp --without-http --without-docbook --without-c14n --without-history --without-regexps --without-sax1 --without-schemas --enable-shared Gcc version is: gcc (tdm64-1) 4.5.2 Binutils version is 2.21 Windows version: Windows 7 Enterprise. These all produce the same results. Thanks in advance From paul.b.cameron@kepware.com Mon May 23 19:51:32 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8D9B7750060 for ; Mon, 23 May 2011 19:51:32 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.754 X-Spam-Level: X-Spam-Status: No, score=-1.754 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, MSGID_MULTIPLE_AT=0.001, TW_BX=0.077, TW_IB=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=no 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 HT5QAHC6G-Pa for ; Mon, 23 May 2011 19:51:27 +0000 (UTC) Received: from mail.kepware.com (mail.kepware.com [24.97.250.66]) by menubar.gnome.org (Postfix) with ESMTP id D539675005F for ; Mon, 23 May 2011 19:51:18 +0000 (UTC) Received: from PAULT7400 [10.20.20.61] by mail.kepware.com with ESMTP (SMTPD-9.23) id AA8E0454; Mon, 23 May 2011 15:50:38 -0400 From: "Paul B. Cameron" To: Date: Mon, 23 May 2011 15:50:37 -0400 Message-ID: <000101cc1982$affeb550$0ffc1ff0$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0002_01CC1961.28ED1550" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcwZgq/Qe2TImYcFREqtgyKKmxyxIw== Content-Language: en-us Subject: [xml] XML Schema: Validating an instance document with multiple schemas X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 23 May 2011 19:51:32 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0002_01CC1961.28ED1550 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I've made a tremendous amount of progress in fitting libxml2 into our application's XML processing model. I took the approach that Frank Gross suggested on my 'multiple schema' issue - namely, to modify the "main" schema on the fly with nodes for each secondary schema (reminder - having to do this is new to me because I'm used to MSXML's "schema collection" object that performs the work of aggregating schemas for you). This works, but I've run into an issue: I have to reload the document after performing the in-memory modifications in order to pass parse validation of the schema itself. Any theories why this might be? I've used the element and doc dumping capabilities of the library and am confident that the runtime changes are correct - indeed they must be if I can dump to memory at runtime and reload/parse/validate. Just to be sure I'm clear, this case fails: 1.) xmlReadFile (strPrimarySchemaFile, NULL, XML_PARSE_NONET) 2.) Add targetNamespace to xs:schema node for primary schema, add nodes for secondary schemas 3.) call xmlSchemaNewDocParserCtxt to create parser context and xmlSchemaParse to parse the schema (which fails) And this case succeeds: 1.) Call xmlReadFile like before 2.) Add targetNamespace and xs:import's exactly like above 3.) Call xmlDocDumpMemory to dump to a xmlChar buffer, xmlDocFree to free the original doc, and xmlReadDoc load the dumped buffer back into a DOM 4.) Call xmlSchemaNewDocParserCtxt and xmlSchemaParse as above (and ultimately xmlSchemaValidateDoc), which now succeed Thanks again, - Paul ------=_NextPart_000_0002_01CC1961.28ED1550 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I’ve = made a tremendous amount of progress in fitting libxml2 into our = application’s XML processing model. I took the approach that Frank = Gross suggested on my ‘multiple schema’ issue – = namely, to modify the “main” schema on the fly with = <xs:impo= rt namespace=3D”blah” = schemaLocation=3D”blah”/> nodes = for each secondary schema (reminder – having to do this is new to = me because I’m used to MSXML’s “schema = collection” object that performs the work of aggregating schemas = for you).  

 =

This = works, but I’ve run into an issue: I have to reload the document = after performing the in-memory modifications in order to pass parse = validation of the schema itself. Any = theories why this might be? I’ve used the element and doc dumping = capabilities of the library and am confident that the runtime changes = are correct – indeed they must be if I can dump to memory at = runtime and reload/parse/validate.

 =

Just to be = sure I’m clear, this case fails:

1.) = xmlReadFile (strPrimarySchemaFile, NULL, = XML_PARSE_NONET)

2.) Add = targetNamespace to xs:schema node for primary schema, add = <xs:import> nodes for secondary schemas

3.) call = xmlSchemaNewDocParserCtxt to create parser context and xmlSchemaParse to = parse the schema (which fails)

=

And this = case succeeds:

1.) Call = xmlReadFile like before

2.) Add = targetNamespace and xs:import’s exactly like = above

3.) Call = xmlDocDumpMemory to dump to a xmlChar buffer, xmlDocFree to free the = original doc, and xmlReadDoc load the dumped buffer back into a = DOM

4.) Call = xmlSchemaNewDocParserCtxt and xmlSchemaParse as above (and ultimately = xmlSchemaValidateDoc), which now succeed

 =

Thanks = again,

- = Paul

 =

 =

 =

------=_NextPart_000_0002_01CC1961.28ED1550-- From olivier.courtin@oslandia.com Wed May 25 13:50:49 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id AEE4C7501E2 for ; Wed, 25 May 2011 13:50:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.746 X-Spam-Level: X-Spam-Status: No, score=-1.746 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, TW_BX=0.077, TW_IB=0.077] autolearn=no 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 yfsu60bEZbry for ; Wed, 25 May 2011 13:50:47 +0000 (UTC) Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by menubar.gnome.org (Postfix) with ESMTP id BDF927501DA for ; Wed, 25 May 2011 13:50:39 +0000 (UTC) X-Originating-IP: 217.70.178.131 Received: from mfilter11-d.gandi.net (mfilter11-d.gandi.net [217.70.178.131]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id BAC63A8078 for ; Wed, 25 May 2011 15:50:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter11-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter11-d.gandi.net (mfilter11-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id YTzl2GxraH4u for ; Wed, 25 May 2011 15:50:36 +0200 (CEST) X-Originating-IP: 82.246.13.72 Received: from [192.168.1.110] (ita73-2-82-246-13-72.fbx.proxad.net [82.246.13.72]) (Authenticated sender: olivier@oslandia.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id E78B5A8084 for ; Wed, 25 May 2011 15:50:35 +0200 (CEST) Message-Id: From: Olivier Courtin To: xml@gnome.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Date: Wed, 25 May 2011 15:50:35 +0200 X-Mailer: Apple Mail (2.936) Subject: [xml] #630130 - Patch - GML XSD Schema X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 25 May 2011 13:50:49 -0000 Hi list, I encouter the same problem, than: The patch provided by TOYODA Eizi is quite small, and 'works for me' with latest libxml2 trunk version. Could we find a way to close this ticket, before next release ? --- xmlschemas.c.orig 2011-04-24 14:58:16.000000000 +0000 +++ xmlschemas.c 2011-04-24 15:47:50.000000000 +0000 @@ -15158,7 +15158,11 @@ } if ( (WXS_IS_LIST(type) || WXS_IS_UNION(type)) && (WXS_IS_RESTRICTION(type) == 0) && - (! WXS_IS_ANY_SIMPLE_TYPE(baseType))) { + ( + (! WXS_IS_ANY_SIMPLE_TYPE(baseType)) + && (baseType->type != XML_SCHEMA_TYPE_SIMPLE) + ) + ) { xmlSchemaPCustomErr(ctxt, XML_SCHEMAP_ST_PROPS_CORRECT_1, WXS_BASIC_CAST type, NULL, Tks in advance, -- Olivier From ensonic@hora-obscura.de Wed May 25 14:19:18 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 5A7707500A2 for ; Wed, 25 May 2011 14:19:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=2 tests=[BAYES_00=-1.9] autolearn=ham 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 3eEyqNKa+2qG for ; Wed, 25 May 2011 14:19:15 +0000 (UTC) Received: from filtteri6.pp.htv.fi (filtteri6.pp.htv.fi [213.243.153.189]) by menubar.gnome.org (Postfix) with ESMTP id CEA817501E7 for ; Wed, 25 May 2011 14:19:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by filtteri6.pp.htv.fi (Postfix) with ESMTP id 5C80E62A06C for ; Wed, 25 May 2011 17:19:04 +0300 (EEST) X-Virus-Scanned: Debian amavisd-new at pp.htv.fi Received: from smtp5.welho.com ([213.243.153.39]) by localhost (filtteri6.pp.htv.fi [213.243.153.189]) (amavisd-new, port 10024) with ESMTP id X8v81jkYXErw for ; Wed, 25 May 2011 17:19:02 +0300 (EEST) Received: from [192.168.0.63] (cs181229052.pp.htv.fi [82.181.229.52]) by smtp5.welho.com (Postfix) with ESMTP id 0D54D5BC002 for ; Wed, 25 May 2011 17:19:02 +0300 (EEST) Message-ID: <4DDD1125.9020503@hora-obscura.de> Date: Wed, 25 May 2011 17:24:37 +0300 From: Stefan Kost User-Agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.2.17) Gecko/20110414 SUSE/3.1.10 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: [xml] patches and testing X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 25 May 2011 14:19:18 -0000 hi, I have spoken to daniel and I will push a couple of simple patches to git master. I'd appreciate if people would test them and let me know if it causes some trouble so that I can fix it. Thanks, Stefan From veillard@redhat.com Thu May 26 02:46:34 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8DD587500E2 for ; Thu, 26 May 2011 02:46:34 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 Ev-UCC3qMjD2 for ; Thu, 26 May 2011 02:46:32 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id BB7E9750080 for ; Thu, 26 May 2011 02:46:24 +0000 (UTC) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4Q2kJ3R005600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 May 2011 22:46:19 -0400 Received: from paphio.veillard.com (vpn1-112-123.nay.redhat.com [10.66.112.123]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p4Q2kFvU030894 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 May 2011 22:46:18 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p4Q2kBtU002070; Thu, 26 May 2011 10:46:13 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p4Q2k8uu002069; Thu, 26 May 2011 10:46:08 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Thu, 26 May 2011 10:46:08 +0800 From: Daniel Veillard To: preet $ Message-ID: <20110526024608.GD8854@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 Cc: xml@gnome.org Subject: Re: [xml] Get default values set in schema X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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: Thu, 26 May 2011 02:46:34 -0000 On Fri, May 20, 2011 at 02:54:53PM -0400, preet $ wrote: > Hi, > > I am able to read the xml and validate it against a schema, I use the > xmlReadFile and xmlSchemaValidateDoc to read the xml and validate it. I want > to set the default value to the attributes, if empty. *I want to know how > can I get the default values from the attributes in the schema*. Any help > would be great.. Well, libxml2 doesn't implement the PSVI support of XSD validation, so there is no way (unless I really missed something) to have what what you suggest from libxml2 XSD support. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From veillard@redhat.com Thu May 26 02:51:49 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E9BF7500E2 for ; Thu, 26 May 2011 02:51:49 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.681 X-Spam-Level: X-Spam-Status: No, score=-6.681 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_BX=0.077, TW_IB=0.077, TW_PM=0.077, T_RP_MATCHES_RCVD=-0.01] autolearn=ham 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 gbs7EbH5mJ25 for ; Thu, 26 May 2011 02:51:47 +0000 (UTC) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by menubar.gnome.org (Postfix) with ESMTP id 86E9C750080 for ; Thu, 26 May 2011 02:51:39 +0000 (UTC) Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p4Q2pcnc009671 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 25 May 2011 22:51:38 -0400 Received: from paphio.veillard.com (vpn1-112-123.nay.redhat.com [10.66.112.123]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p4Q2pYhw014256 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 25 May 2011 22:51:37 -0400 Received: from paphio.veillard.com (paphio.veillard.com [127.0.0.1]) by paphio.veillard.com (8.14.4/8.14.4) with ESMTP id p4Q2pUJJ002120; Thu, 26 May 2011 10:51:31 +0800 Received: (from veillard@localhost) by paphio.veillard.com (8.14.4/8.14.4/Submit) id p4Q2pRmU002116; Thu, 26 May 2011 10:51:27 +0800 X-Authentication-Warning: paphio.veillard.com: veillard set sender to veillard@redhat.com using -f Date: Thu, 26 May 2011 10:51:27 +0800 From: Daniel Veillard To: "Paul B. Cameron" Message-ID: <20110526025127.GE8854@redhat.com> References: <000101cc1982$affeb550$0ffc1ff0$@b.cameron@kepware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000101cc1982$affeb550$0ffc1ff0$@b.cameron@kepware.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Cc: xml@gnome.org Subject: Re: [xml] XML Schema: Validating an instance document with multiple schemas X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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: Thu, 26 May 2011 02:51:49 -0000 On Mon, May 23, 2011 at 03:50:37PM -0400, Paul B. Cameron wrote: > Just to be sure I'm clear, this case fails: > > 1.) xmlReadFile (strPrimarySchemaFile, NULL, XML_PARSE_NONET) > > 2.) Add targetNamespace to xs:schema node for primary schema, add > nodes for secondary schemas > > 3.) call xmlSchemaNewDocParserCtxt to create parser context and > xmlSchemaParse to parse the schema (which fails) This smells like in doing 2 you missed something with namespaces, and that as a result when parsing your in-memory tree teh XSD parser fails to find the namespaces (maybe just the prefix or something. > > And this case succeeds: > > 1.) Call xmlReadFile like before > > 2.) Add targetNamespace and xs:import's exactly like above > > 3.) Call xmlDocDumpMemory to dump to a xmlChar buffer, xmlDocFree to free > the original doc, and xmlReadDoc load the dumped buffer back into a DOM here after serialization and reparsing the namespaces of the elements and attributes in the tree are fine, and then everything works as expected. > 4.) Call xmlSchemaNewDocParserCtxt and xmlSchemaParse as above (and > ultimately xmlSchemaValidateDoc), which now succeed Triple-check the namespaces pointers and of the new elements/attributes you added to the tree, not by serializing them but by looing at the actual ns and nsDef pointers. Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@veillard.com | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ From rip.rowan@gmail.com Thu May 26 00:11:24 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3B968750068 for ; Thu, 26 May 2011 00:11:24 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -2.687 X-Spam-Level: X-Spam-Status: No, score=-2.687 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RFC_ABUSE_POST=0.001, SPF_PASS=-0.001, TVD_SPACE_RATIO=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 QTfvpNKQ1Q9e for ; Thu, 26 May 2011 00:11:22 +0000 (UTC) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by menubar.gnome.org (Postfix) with ESMTP id 5780375002F for ; Thu, 26 May 2011 00:11:13 +0000 (UTC) Received: by fxm11 with SMTP id 11so541828fxm.27 for ; Wed, 25 May 2011 17:11:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:from:date:message-id:subject:to :content-type; bh=YHlASoYuK0KxbPdleOZtIIkcL8x1BdmKJqGRkFWx2NQ=; b=PJyepcOllzudGke9hiIWZby0rpgMOzY4LkLXTvjdexMwCsBRZhrKWXtcziOdN1ZEuM zyHqjyd4cFe+MX71IuUlxkC6hkIzYqAuFVjTAKQpsXRvqjii1qMAYOzHy0qOrU9DJKod Xw/hK5vITgRBAm4IHPpnOdNyoOqG/qQsxlMk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=Qdn4zTfmeLYv3u0aZpwYjE9BCjjAc7LX7A8VE9R8XbwSyQmTO1InxoJ++0a9JrI8Uc dyltab4ZD/Fx6GKKACso9gN/FPnueo/sMd0LV9yE63ikaTEVKEsT1suAhH3ryZ6LI+U7 Og2yaS4gR1NbkQwQHs12Q3dNqcJYui7quKBv4= Received: by 10.204.139.199 with SMTP id f7mr95513bku.23.1306368672214; Wed, 25 May 2011 17:11:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.17.6 with HTTP; Wed, 25 May 2011 17:10:52 -0700 (PDT) From: Rip Rowan Date: Wed, 25 May 2011 19:10:52 -0500 Message-ID: To: xml@gnome.org Content-Type: multipart/alternative; boundary=0015174c0bdea7311b04a422a82d X-Mailman-Approved-At: Thu, 26 May 2011 17:17:35 +0000 Subject: [xml] unsubscribe X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 26 May 2011 00:11:24 -0000 --0015174c0bdea7311b04a422a82d Content-Type: text/plain; charset=ISO-8859-1 unsubscribe --0015174c0bdea7311b04a422a82d Content-Type: text/html; charset=ISO-8859-1 unsubscribe
--0015174c0bdea7311b04a422a82d-- From Heiko.Klein@gmx.net Thu May 26 07:42:11 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 548DD7502FC for ; Thu, 26 May 2011 07:42:11 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -6.734 X-Spam-Level: X-Spam-Status: No, score=-6.734 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_HI=-5, SPF_FAIL=0.001, TW_BX=0.077, TW_IB=0.077, T_TO_NO_BRKTS_FREEMAIL=0.01] autolearn=ham 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 gW8knshhI6uT for ; Thu, 26 May 2011 07:42:08 +0000 (UTC) X-Greylist: delayed 1005 seconds by postgrey-1.32 at menubar.gnome.org; Thu, 26 May 2011 07:42:07 UTC Received: from smtp2.oslo.dnmi.no (smtp2.oslo.dnmi.no [128.39.62.242]) by menubar.gnome.org (Postfix) with ESMTP id D3FA67501AE for ; Thu, 26 May 2011 07:41:59 +0000 (UTC) Received: from pc2635.pc.met.no ([157.249.20.59]) by smtp2.oslo.dnmi.no with esmtp (Exim 4.69) (envelope-from ) id 1QPUwS-0002GG-AA for xml@gnome.org; Thu, 26 May 2011 07:25:12 +0000 Message-ID: <4DDE0058.7080504@gmx.net> Date: Thu, 26 May 2011 09:25:12 +0200 From: Heiko Klein User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: xml@gnome.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Thu, 26 May 2011 17:17:35 +0000 Subject: Re: [xml] #630130 - Patch - GML XSD Schema X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 26 May 2011 07:42:11 -0000 Hi, I just want to emphasize that the validation against the ISO19115/ISO-TS19139 and thus the GML XSD Schema is a problem for several people. The schema is used within the EU-INSPIRE directive and by the WMO Information System. Those communities are mainly java-centric, but it would be nice to have a c-alternative. Regards, Heiko On 2011-05-25 15:50, Olivier Courtin wrote: > Hi list, > > I encouter the same problem, than: > > > > The patch provided by TOYODA Eizi is quite small, and 'works for me' > with latest libxml2 trunk version. > > > Could we find a way to close this ticket, before next release ? > > > --- xmlschemas.c.orig 2011-04-24 14:58:16.000000000 +0000 > +++ xmlschemas.c 2011-04-24 15:47:50.000000000 +0000 > @@ -15158,7 +15158,11 @@ > } > if ( (WXS_IS_LIST(type) || WXS_IS_UNION(type)) && > (WXS_IS_RESTRICTION(type) == 0) && > - (! WXS_IS_ANY_SIMPLE_TYPE(baseType))) { > + ( > + (! WXS_IS_ANY_SIMPLE_TYPE(baseType)) > + && (baseType->type != XML_SCHEMA_TYPE_SIMPLE) > + ) > + ) { > xmlSchemaPCustomErr(ctxt, > XML_SCHEMAP_ST_PROPS_CORRECT_1, > WXS_BASIC_CAST type, NULL, > > > > Tks in advance, > > -- > Olivier From f.delyon@satimage.fr Mon May 30 12:09:21 2011 Return-Path: X-Original-To: xml@gnome.org Delivered-To: xml@gnome.org Received: from localhost (localhost.localdomain [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 55FDF75010A for ; Mon, 30 May 2011 12:09:21 +0000 (UTC) X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Flag: NO X-Spam-Score: -1.235 X-Spam-Level: X-Spam-Status: No, score=-1.235 tagged_above=-999 required=2 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.665] autolearn=no 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 nu6tZ2kJUFZH for ; Mon, 30 May 2011 12:09:19 +0000 (UTC) X-Greylist: delayed 459 seconds by postgrey-1.32 at menubar.gnome.org; Mon, 30 May 2011 12:09:19 UTC Received: from smtp.smtpout.orange.fr (smtp12.smtpout.orange.fr [80.12.242.134]) by menubar.gnome.org (Postfix) with ESMTP id 04A8175000A for ; Mon, 30 May 2011 12:09:10 +0000 (UTC) Received: from new-host-4.home ([193.252.195.170]) by mwinf5d23 with ME id po1T1g00Q3h3lFl03o1UL7; Mon, 30 May 2011 14:01:28 +0200 Message-Id: From: =?ISO-8859-1?Q?Fran=E7ois_Delyon?= To: libxml Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v936) Date: Mon, 30 May 2011 14:01:27 +0200 X-Mailer: Apple Mail (2.936) Subject: [xml] xsltApplyStylesheet modifies doc X-BeenThere: xml@gnome.org X-Mailman-Version: 2.1.14 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, 30 May 2011 12:09:21 -0000 It seems reasonable to expect that xsltApplyStylesheet should preserve =20= the input document. It is not the case since it calls xsltApplyStylesheetInternal which =20 modifies the children of the document in order to hide the doc->intSubset. This modification is not reversible since, as fas as I unsterstand, it =20= destroys the linkage even in doc->intSubset. Nevertheless, I think that xsltApplyStylesheetInternal should be =20 encapsulated in another function ensuring that the document is preserved. By the way, I don't figure out what is the status of doc->intSubset. I =20= understand it is a shortcut to reach the dtd, but is it supposed to =20 retain the linkage of the dtd children? Fran=E7ois.=