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 07:49:31 +0100 Message-ID: <87ei9q5dhg.fsf@gmail.com> References: <87hbep8psi.fsf@stupidchicken.com> <8739q9jbic.fsf@ambire.localdomain> <87mxoggsz1.fsf@ambire.localdomain> <87mxoe5w50.fsf@gmail.com> <877hfitmwi.fsf@uwakimon.sk.tsukuba.ac.jp> 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 1291998623 749 80.91.229.12 (10 Dec 2010 16:30:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Dec 2010 16:30:23 +0000 (UTC) Cc: 'Chong Yidong' , 'Thien-Thi Nguyen' , joakim@verona.se, 'Emacs developers' , "'Andrew W. Nosenko'" , Drew Adams To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 10 17:30:15 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 1PR5rJ-0007WA-Th for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 17:30:14 +0100 Original-Received: from localhost ([127.0.0.1]:43591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PR5rJ-0000rl-Cj for ged-emacs-devel@m.gmane.org; Fri, 10 Dec 2010 11:30:13 -0500 Original-Received: from [140.186.70.92] (port=52991 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQwpJ-00087M-Vc for emacs-devel@gnu.org; Fri, 10 Dec 2010 01:51:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQwpI-0002hc-9g for emacs-devel@gnu.org; Fri, 10 Dec 2010 01:51:33 -0500 Original-Received: from mail-fx0-f48.google.com ([209.85.161.48]:58456) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQwpI-0002hX-2f for emacs-devel@gnu.org; Fri, 10 Dec 2010 01:51:32 -0500 Original-Received: by fxm2 with SMTP id 2so3159890fxm.35 for ; Thu, 09 Dec 2010 22:51:31 -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=dRjPSHQbWHD301o05HEH9zuYXrPxkzAfc2PEHw3xLrc=; b=sOC9FPXLQHQgW/fLkglQvA/5TMpku0diiNXYJxFPsXWhCiOVOiQKpX3/T5gNnlgnz1 ib/nHuGGLDQI2II3dBlcHAedNByqMmeNNyfz9oIMoqyrStQ1cuG9dteBgOEjlL01YC4S ltBURUL+PUIoA7AK5fApN2FO2YIOzhCETwVZU= 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=Ni7SUFPKM3uIObSy+6G/b4PqCZx267B0rRhiZx7SV3Xu69SRPacG6FsPx9XxqWJzvg pP4pyrpr0oXXwdQPIXwSemhH7Q3NjOXmpPLCXGaO4y+WXWlbIW285jXVoOqAwx/EY1bA suQgsyfmLNTuIppYV9t7RPuNTZQNbBIE4GbBE= Original-Received: by 10.223.83.194 with SMTP id g2mr466709fal.75.1291963890875; Thu, 09 Dec 2010 22:51:30 -0800 (PST) Original-Received: from localhost (176.119.broadband10.iol.cz [90.177.119.176]) by mx.google.com with ESMTPS id e17sm791714fak.10.2010.12.09.22.51.27 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 09 Dec 2010 22:51:28 -0800 (PST) In-Reply-To: <877hfitmwi.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Fri, 10 Dec 2010 10:52:13 +0900") 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:133574 Archived-At: "Stephen J. Turnbull" writes: > =C5=A0t=C4=9Bp=C3=A1n N=C4=9Bmec writes: > > > 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. > > Sure. But our language doesn't have a standard lossless format yet, > it doesn't have an XPath implementation at all, and it's not clear to > me why a lossless sexp format would be all that much more readable > than XML (assuming an XML mode designed to be readable, which would > probably be a bigger gain than XML-to-Lisp -- all XML modes I've seen > have been designed for use by those who think XML is readable). > > I think you've got a lot of work ahead of you. I don't enjoy lengthy unfocused discussions/parallel monologues as much as you (seem to) do, so I'm not going to try to address all of what you write (sorry). This time I just somehow couldn't resist and replied to the nonsense Drew wrote, which in hindsight was probably a mistake. If you're interested in working with XML in Emacs Lisp, have a look at the relevant Emacs Wiki page: http://www.emacswiki.org/emacs/CategoryXML Granted, the situation in Elisp is not nearly as good as in Scheme for instance [1], but there is also an XPath implementation linked from here: http://www.emacswiki.org/emacs/XmlParser [1] Which is quite understandable, given the relative quality of Elisp the language (for me personally, having Scheme in Emacs/Emacs on Scheme would be no less than a redemption), the related "policies", and how some of (X)Emacs developers spend the limited amount of time available, right? http://okmij.org/ftp/Scheme/xml.html =C5=A0t=C4=9Bp=C3=A1n