From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kirill Lisovsky Newsgroups: gmane.lisp.guile.user Subject: Re: Guile & Sablotron Date: Tue, 20 Apr 2004 13:59:06 -0400 (EDT) Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: References: <20040317180243.A2923@kiwi.pyrotechnics.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1082484232 15989 80.91.224.253 (20 Apr 2004 18:03:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 20 Apr 2004 18:03:52 +0000 (UTC) Cc: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Apr 20 20:03:35 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BFzao-0007gH-00 for ; Tue, 20 Apr 2004 20:03:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFzak-00046t-9O for guile-user@m.gmane.org; Tue, 20 Apr 2004 14:03:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BFzaI-0003zt-PI for guile-user@gnu.org; Tue, 20 Apr 2004 14:03:02 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BFzZk-0003qB-Ke for guile-user@gnu.org; Tue, 20 Apr 2004 14:02:59 -0400 Original-Received: from [66.11.168.194] (helo=smtp.istop.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BFzZk-0003po-7d for guile-user@gnu.org; Tue, 20 Apr 2004 14:02:28 -0400 Original-Received: from ant (ip133-190.ott.istop.com [66.11.190.133]) by smtp.istop.com (Postfix) with ESMTP id 1772E17C336; Tue, 20 Apr 2004 14:02:27 -0400 (EDT) X-X-Sender: kl@ant Original-To: Christopher Cramer In-Reply-To: <20040317180243.A2923@kiwi.pyrotechnics.com> X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:3101 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:3101 Hello, Please drop a look at SXML: http://okmij.org/ftp/Scheme/SXML.html It represents > > > > 10 > > 9 > > 7 > > ... > (division (id "North") > (revenue 10) > (growth 9) > (bonus 7)) as (division (@ (id "North")) (revenue 10) (growth 9) (bonus 7)) which makes it clear that "id" is attribute, and not a nested element. It also provides support for Namespaces, SXPath and XPath, xml->sxml parsing, sxml->xml/html transformation, and much more... More information may be found at: http://ssax.sourceforge.net http://okmij.org/ftp/Scheme/xml.html http://pair.com/lisovsky/xml/ http://celtic.benderweb.net/webit/ Maillist: http://lists.sourceforge.net/lists/listinfo/ssax-sxml A Guile-oriented tutorial may be found at: http://www-106.ibm.com/developerworks/library/x-matters31.html Best regards, Kirill. On Wed, 17 Mar 2004, Christopher Cramer wrote: > On Tue, Mar 09, 2004 at 09:32:05AM -0800, Brian S McQueen wrote: > > Guile & Sablotron! Who is interested? I need to discuss this with > > someone! TTN! You do a lot of web work. Using a template engine is the > > way to go for handling the presentation of data. The programs can produce > > generic data of this sort: > > > > > > > > > > 10 > > 9 > > 7 > > > > > > > > 4 > > 3 > > 4 > > > > > > > > 6 > > -1.5 > > 2 > > > > > > > > I'm pretty much sold on the idea of integrating templates into Recluse. > But that sort of output seems a little less elegant than I would like. > You'd end up with display or format calls outputting XML, which is an > improvement over outputting HTML, but I wonder if instead of outputting > XML we could just return a list. > > Something like: > > '(sales > (division (id "North") > (revenue 10) > (growth 9) > (bonus 7)) > > (division (id "South") > (revenue 4) > (growth 3) > (bonus 4))) > > I think being able to write the whole thing using just sql->list, map, > append, etc. (or even backquotes) would make it a lot easier. > > I suppose there might be interoperability benefits to using XML though. > Maybe we should have some ->xml and xml-> procedures. > > -- > Christopher Cramer > In politics you have to understand not where the voters are when a poll > is taken, but where they are likely to end up on Election Day. > -- Rep. Tom Davis, former NRCC Chairman > > > _______________________________________________ > Guile-user mailing list > Guile-user@gnu.org > http://mail.gnu.org/mailman/listinfo/guile-user > _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user