From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.devel Subject: Re: online conversion support from xsd to rng? Date: Fri, 10 Dec 2010 02:10:53 +0100 Message-ID: References: <87hbep8psi.fsf@stupidchicken.com> <8739q9jbic.fsf@ambire.localdomain> <87mxoggsz1.fsf@ambire.localdomain> <87mxoe5w50.fsf@gmail.com> 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 1291995293 15542 80.91.229.12 (10 Dec 2010 15:34:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 15:34:53 +0000 (UTC) Cc: Chong Yidong , Thien-Thi Nguyen , "Andrew W. Nosenko" , Emacs developers , joakim@verona.se, Drew Adams To: =?UTF-8?B?xaB0xJtww6FuIE7Em21lYw==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 16:34: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 1PR4za-0000fP-QA for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 16:34:47 +0100 Original-Received: from localhost ([127.0.0.1]:58010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR4zX-0007c2-KS for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 10:34:39 -0500 Original-Received: from [140.186.70.92] (port=33096 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQrW1-0006Gu-VI for emacs-devel@gnu.org; Thu, 09 Dec 2010 20:11:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQrW0-0001gA-QY for emacs-devel@gnu.org; Thu, 09 Dec 2010 20:11:17 -0500 Original-Received: from mail-ey0-f177.google.com ([209.85.215.177]:50342) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQrW0-0001fw-MF for emacs-devel@gnu.org; Thu, 09 Dec 2010 20:11:16 -0500 Original-Received: by eyd9 with SMTP id 9so2740737eyd.36 for ; Thu, 09 Dec 2010 17:11:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=hS5PtCW8KK+vcn4yLOFzBKUEl7f1e5TvCEC7jHK8MZY=; b=ExZ8dZrIoc9uemxTWWLcd788b5Yk7xKltEqweqww0fLbYRGuhNtgBNEalvs0xMMdL1 DJRHtrJ95fL73qj2nKV1DMis6JtB1SCgeZszdnopfyOioLFOOOswkBKBKYBlPf2UtRB8 AKvd3P19rgXdh9ZxEdwMZdXHnccHkHXd/FnBk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=L26uZRGKxph20hpCSNf9UPlMhF4KJzzZyP/kpH6N6QLO1MFlknXDRDQPWRbHHjPWwY nvKA23lQSFuRh4x6LZOs3oxWTowNmUWv1Gd4zUe10ny3bx+vkrhxs0LLOFvE98ZYNrGV Ile+IHR52x3WA4yrsgt/f/7muK1e9fKS53qKo= Original-Received: by 10.213.30.1 with SMTP id s1mr150504ebc.71.1291943475103; Thu, 09 Dec 2010 17:11:15 -0800 (PST) Original-Received: by 10.213.29.8 with HTTP; Thu, 9 Dec 2010 17:10:53 -0800 (PST) In-Reply-To: <87mxoe5w50.fsf@gmail.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:133570 Archived-At: On Fri, Dec 10, 2010 at 1:06 AM, =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec wrote: > "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, transfo= rmation, >> etc. =C2=A0IOW, once in Lispland, no XPath, XQuery, XSLT,... =C2=A0If yo= ur processing of >> XML also involves, well, XML processing (e.g. XQuery transformations) th= at is >> part of the given, then you've lost that. >> >> IOW, conversion to conses and processing using Lisp can be useful, but d= epending >> 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. Is there such an implementation in for example elisp?