From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thien-Thi Nguyen Newsgroups: gmane.emacs.devel Subject: Re: online conversion support from xsd to rng? Date: Wed, 08 Dec 2010 16:54:58 +0100 Message-ID: <87mxoggsz1.fsf@ambire.localdomain> References: <87hbep8psi.fsf@stupidchicken.com> <8739q9jbic.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 1291900664 12108 80.91.229.12 (9 Dec 2010 13:17:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 13:17:44 +0000 (UTC) Cc: Chong Yidong , joakim@verona.se, Emacs developers To: "Andrew W. Nosenko" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 09 14:17:39 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 1PQgNP-0000g0-8r for ged-emacs-devel@m.gmane.org; Thu, 09 Dec 2010 14:17:39 +0100 Original-Received: from localhost ([127.0.0.1]:37334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQgNO-0006zN-BX for ged-emacs-devel@m.gmane.org; Thu, 09 Dec 2010 08:17:38 -0500 Original-Received: from [140.186.70.92] (port=40531 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQMQv-00045h-Jh for emacs-devel@gnu.org; Wed, 08 Dec 2010 10:59:58 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQMQu-0000MR-I2 for emacs-devel@gnu.org; Wed, 08 Dec 2010 10:59:57 -0500 Original-Received: from smtp209.alice.it ([82.57.200.105]:55669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQMQu-0000Lt-96 for emacs-devel@gnu.org; Wed, 08 Dec 2010 10:59:56 -0500 Original-Received: from ambire.localdomain (87.5.65.220) by smtp209.alice.it (8.5.124.08) id 4C1A27590C1EA7BA; Wed, 8 Dec 2010 16:59:50 +0100 Original-Received: from ttn by ambire.localdomain with local (Exim 4.69) (envelope-from ) id 1PQMM7-0001Bw-Db; Wed, 08 Dec 2010 16:54:59 +0100 In-Reply-To: (Andrew W. Nosenko's message of "Wed, 8 Dec 2010 12:45:26 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. 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:133538 Archived-At: () "Andrew W. Nosenko" () Wed, 8 Dec 2010 12:45:26 +0200 You don't need to port the libxslt from the libxml2 to libexpat -- libxml2 already used in emacs $ ldd emacs | grep libxml2 libxml2.so.5 =3D> /usr/local/lib/libxml2.so.5 (0x804240000) I think there are two areas of primary concern: (a) conversion between XML and Lisp trees (nested lists) (b) routines for manipulating the tree Personally (in a Scheme context, which is similar to Emacs Lisp), i use =E2=80=98ttn-do xml2sexp=E2=80=99 for (a), and ad-hoc car/cdr climbing = for (b), avoiding libxslt altogether. The idea is to flee the angry brackets into the loving parens immediately. (I briefly looked at the pattern matching / transform primitives of XSLT and was horrified.)