From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wojciech Meyer Newsgroups: gmane.emacs.devel Subject: Re: Problems with xml-parse-string Date: Wed, 22 Sep 2010 17:51:05 +0100 Message-ID: References: <87pqw6d7nz.fsf@stupidchicken.com> <87zkvaiked.fsf@stupidchicken.com> <87vd5ymptn.fsf@stupidchicken.com> <87zkv97u1k.fsf@stupidchicken.com> <87bp7pkcho.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285174282 26219 80.91.229.12 (22 Sep 2010 16:51:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 22 Sep 2010 16:51:22 +0000 (UTC) Cc: emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 22 18:51:19 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OySXO-00018H-Sp for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 18:51:19 +0200 Original-Received: from localhost ([127.0.0.1]:39252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OySXO-0000x5-DC for ged-emacs-devel@m.gmane.org; Wed, 22 Sep 2010 12:51:18 -0400 Original-Received: from [140.186.70.92] (port=35444 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OySXI-0000w3-2v for emacs-devel@gnu.org; Wed, 22 Sep 2010 12:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OySXC-0004Lg-Ev for emacs-devel@gnu.org; Wed, 22 Sep 2010 12:51:11 -0400 Original-Received: from mail-qw0-f41.google.com ([209.85.216.41]:58185) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OySXC-0004LZ-Cy for emacs-devel@gnu.org; Wed, 22 Sep 2010 12:51:06 -0400 Original-Received: by qwf7 with SMTP id 7so927861qwf.0 for ; Wed, 22 Sep 2010 09:51:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=bBcf+4xY7SVEHTsziiewshDylRuDytLY/VWEi3WPsso=; b=IU+clBKUZ4GS91DQ62aBEyRjs4aHblmgOaODpezi6WGMghQnPmbehS6XGqwUcEorIY 86EnJGifb6MHk63iYZGWsCB3o0XJhGiL60lI0HNPbakbJe2pjSbn1/JExkLdinDSx2L5 qPiEHKvFJOLtNLxVoTFtk8XCB3kARJ7RcAqY8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=J57rzY4FDpdh2EvpKVyrmJFeHyV3JZyfjhIE85cL/eXVwyl8IQy9LKHL1VdxVme0UB ZTjcL+7cqMWjzEyFGtmIh/vEG51PM+Rr7xHXBjXGsajsfPA0ZGWgvnLGThdr0ejm4WWb S3+qK1C6EE8ptxMBd+1gjX0Hrv19nSJlmUwiY= Original-Received: by 10.229.1.163 with SMTP id 35mr270389qcf.299.1285174265246; Wed, 22 Sep 2010 09:51:05 -0700 (PDT) Original-Received: by 10.229.31.139 with HTTP; Wed, 22 Sep 2010 09:51:05 -0700 (PDT) In-Reply-To: <87bp7pkcho.fsf@stupidchicken.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130635 Archived-At: On Wed, Sep 22, 2010 at 4:46 PM, Chong Yidong wrote= : > Lars Magne Ingebrigtsen writes: > >> Chong Yidong writes: >> >>> So either the new libxml functions have to provide the same format as >>> xml.el, or xml.el has to be changed to used the new format, breaking >>> existing uses. =A0I am amenable to the latter if the new format is so m= uch >>> better than the old one that it's worth dealing with the backward >>> compatibility headaches. >> >> I'd volunteer for changing the callers to use the new format if you >> change xml.el to do the same. > > First let me clarify a technical detail. =A0In your new format, > > =A0(catalog > =A0 (text . "\n =A0 ") > =A0 (book > =A0 =A0 (:type . "manual") > =A0 =A0 (text . "\n =A0 =A0 =A0") > =A0 =A0 (title > =A0 =A0 =A0 (text . "GNU Emacs manual")) > =A0 =A0 (text . "\n =A0 ")) > =A0 (text . "\n")) > > seems to assume that element names never start with the colon character. > That is, there can never be an element named ":type". > > The XML spec (http://www.w3.org/TR/2008/REC-xml-20081126/) seems to > indicate that element names are allowed to start with a colon; see the > definition of NameStartChar in section 2.3. > > It looks like the new format would give ambiguous results in that case. My personal opinion, is to stick with something that is standardized - SXml that handles all the cases, and have one and only one uniform representatio= n. If nobody is up to this, I would volunteer to implement the SXml backend. Thanks, Wojciech