From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?B?xaB0xJtww6FuIE7Em21lYw==?= Newsgroups: gmane.emacs.devel Subject: Re: online conversion support from xsd to rng? Date: Fri, 10 Dec 2010 01:06:35 +0100 Message-ID: <87mxoe5w50.fsf@gmail.com> References: <87hbep8psi.fsf@stupidchicken.com> <8739q9jbic.fsf@ambire.localdomain> <87mxoggsz1.fsf@ambire.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291942072 26905 80.91.229.12 (10 Dec 2010 00:47:52 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 00:47:52 +0000 (UTC) Cc: joakim@verona.se, 'Chong Yidong' , 'Thien-Thi Nguyen' , "'Andrew W. Nosenko'" , 'Emacs developers' To: "Drew Adams" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 01:47:47 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 1PQr9H-0001F3-E2 for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 01:47:47 +0100 Original-Received: from localhost ([127.0.0.1]:44023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQr9G-0002jU-OQ for ged-emacs-devel@m.gmane.org; Thu, 09 Dec 2010 19:47:46 -0500 Original-Received: from [140.186.70.92] (port=54985 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQqXO-0001Yp-5q for emacs-devel@gnu.org; Thu, 09 Dec 2010 19:08:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQqXM-0002C2-Uu for emacs-devel@gnu.org; Thu, 09 Dec 2010 19:08:38 -0500 Original-Received: from mail-bw0-f43.google.com ([209.85.214.43]:34079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQqXM-0002Bg-Or for emacs-devel@gnu.org; Thu, 09 Dec 2010 19:08:36 -0500 Original-Received: by bwz14 with SMTP id 14so3296121bwz.30 for ; Thu, 09 Dec 2010 16:08:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject :in-reply-to:references:user-agent:date:message-id:mime-version :content-type:content-transfer-encoding; bh=kxkronkFBl+zCQqplwVcS65TUkjkXh2/cP3yza+zcNs=; b=oy16KXpSSgOJd0+4d2+wjP+WoOThTAK+4WLamDvI94x3Ioyzs+Tyqr0mQ783fNdR63 txMmOB7TfWe6i92XzwLXi8cyBk52vzevbT7ZV6vgDxGIcX/GrFs1PcmxH9OPg/xw3xtG uVBgKpkYSY5PEOegdedF9bE/YdvLuOr0+KIqk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:in-reply-to:references:user-agent:date :message-id:mime-version:content-type:content-transfer-encoding; b=qZwsm5xBRpEbC4Hd9M7BmhRfGpkaHMFTl9TqIIYG9IGS+EaLb3nTnE+g4VdjrB4HyV aVv4c6r8QB84AZ6lSPY0j2leJdjc9wlemFegJHyUATW6S13ufpkTvd0BLSgKV8H9+oGw Q0wsJ3pmOY07waEkFREqXmqMsE78+qRkt42Ew= Original-Received: by 10.204.100.139 with SMTP id y11mr126991bkn.4.1291939715280; Thu, 09 Dec 2010 16:08:35 -0800 (PST) Original-Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id v1sm1247714bkt.17.2010.12.09.16.08.31 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 09 Dec 2010 16:08:32 -0800 (PST) In-Reply-To: (Drew Adams's message of "Thu, 9 Dec 2010 08:19:09 -0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) 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:133556 Archived-At: "Drew Adams" writes: >> I think there are two areas of primary concern: >> (a) conversion between XML and Lisp trees (nested lists) >> (b) routines for manipulating the tree > > Once you've converted XML to Lisp you lose all XML-level access, transfor= mation, > etc. IOW, once in Lispland, no XPath, XQuery, XSLT,... If your processi= ng of > XML also involves, well, XML processing (e.g. XQuery transformations) tha= t is > part of the given, then you've lost that. > > IOW, conversion to conses and processing using Lisp can be useful, but de= pending > on your context there can be a cost. This is nonsense. XPath and friends are not bound to the external representation of the data in any way. They operate on the DOM tree. So as long as your XML conversion to sexp format is lossless (which it should be, of course), you lose nothing, only gain the advantages of saner format (i.e. sexp) both for humans and the machine -- you just need an XPath etc. implementation for your language. =C5=A0t=C4=9Bp=C3=A1n