From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Julian Graham" Newsgroups: gmane.lisp.guile.user Subject: Re: scheme -> (X)HTML Date: Tue, 25 Mar 2008 15:53:47 -0400 Message-ID: <2bc5f8210803251253p6f07911brcceaa1cc2bf949c1@mail.gmail.com> References: <20080325193702.6B6AE94049@webmail220.herald.ox.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1206474851 27768 80.91.229.12 (25 Mar 2008 19:54:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Mar 2008 19:54:11 +0000 (UTC) Cc: guile-user@gnu.org To: "Paul Emsley" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Mar 25 20:54:41 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JeFEC-0005XL-AT for guile-user@m.gmane.org; Tue, 25 Mar 2008 20:54:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeFDb-0008Ej-3P for guile-user@m.gmane.org; Tue, 25 Mar 2008 15:53:59 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JeFDW-0008Ak-O6 for guile-user@gnu.org; Tue, 25 Mar 2008 15:53:54 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JeFDV-00087k-9n for guile-user@gnu.org; Tue, 25 Mar 2008 15:53:54 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JeFDV-00087a-3M for guile-user@gnu.org; Tue, 25 Mar 2008 15:53:53 -0400 Original-Received: from fk-out-0910.google.com ([209.85.128.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JeFDU-0002ek-Ob for guile-user@gnu.org; Tue, 25 Mar 2008 15:53:52 -0400 Original-Received: by fk-out-0910.google.com with SMTP id 26so4112064fkx.10 for ; Tue, 25 Mar 2008 12:53:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=STRHH4xef4uNFGRj5+Oc1SkOffLMOCu62kjfQhXkR7U=; b=S0rYAHJT/Zud/65y45lh8lrQNmG9XLNVGqMPYuZqEVc1lhIKdW6tZYKCm3iBGAQmGGWkgAEzhWMSbLrQ6Cg5bcE/PPPJRrOy9lVKAkS3gTv0hWO1Iq8JkOW/4JO81crBdyxzRfUk4ZEn0UceWKWyQ48nDNBE4ZURxL9W8/5wlqs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WhqmlbdlrizHqCbXy1KhpktNBAcQ184Dj3pPH2WmtVMdjv0wnkXZa7umt0sSk4WiAqb4j17w/8NhoRDl893hGMVX0td1ShcXt3YRzDSi2t44ywNQCkxU1XTmuSIbZefWefH+2jmQMks6YMXRyKLg/j7lGavLq9VnYBbmTe4D5Rg= Original-Received: by 10.82.107.15 with SMTP id f15mr21952460buc.39.1206474827410; Tue, 25 Mar 2008 12:53:47 -0700 (PDT) Original-Received: by 10.82.166.7 with HTTP; Tue, 25 Mar 2008 12:53:47 -0700 (PDT) In-Reply-To: <20080325193702.6B6AE94049@webmail220.herald.ox.ac.uk> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6487 Archived-At: Hi Paul, There are several good tools out there for doing this: Oleg Kiselyov has written a Scheme-based port of SAX called SSAX [1] that can read and emit S-expressions in a format he calls SXML. It's available for Guile as part of Andy Wingo's guile-lib [2]. For permissive HTML parsing, Neil Van Dyke has written HtmlPrag [3]. And if you're interested in a more DOM-based approach, I've got a module called SDOM [4]. Hope that helps! Regards, Julian [1]: http://okmij.org/ftp/Scheme/SXML.html [2]: http://home.gna.org/guile-lib/ [3]: http://www.neilvandyke.org/htmlprag/ [4]: http://www.nongnu.org/sdom/ On Tue, Mar 25, 2008 at 3:37 PM, Paul Emsley wrote: > > Dear Guilers, > > I have in mind to write a little script that makes a web page about the state of > various files. > > I'd like to use some schemey way of doing this. s-expression -> HTML perhaps. > > What is the thinking guile-user's way of approaching this?