[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scheme -> (X)HTML
Re: scheme -> (X)HTML
Mon, 31 Mar 2008 22:33:43 +0200
Sorry for bothering you off the list but I've hit some troubles with guile
mailing lists lately so I'm writing to you directly.
There's a package I've put on savannah that uses SXML (via guile) in order to
build HTML. Maybe it could be of some help to you. This is its main URL:
Maybe it worth a look.
NOTE: It is in its early stage of development so do not expect too much ;-)
On Monday 31 March 2008, Paul Emsley wrote:
> Julian Graham wrote:
> > On Tue, Mar 25, 2008 at 3:37 PM, Paul Emsley <address@hidden>
> >> 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?
> > Hi Paul,
> > There are several good tools out there for doing this: Oleg Kiselyov
> > has written a Scheme-based port of SAX called SSAX  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 . For permissive HTML
> > parsing, Neil Van Dyke has written HtmlPrag . And if you're
> > interested in a more DOM-based approach, I've got a module called SDOM
> > .
> > Hope that helps!
> > Regards,
> > Julian
> > : http://okmij.org/ftp/Scheme/SXML.html
> > : http://home.gna.org/guile-lib/
> > : http://www.neilvandyke.org/htmlprag/
> > : http://www.nongnu.org/sdom/
> Hi Julian,
> Thank you and others for replying to my query.
> I looked at  and  in your list - I didn't want to parse XML - not
> yet anyway.
> Trying  I found that Oleg made me jump through hoops with his
> idiosyncratically organised
> web pages. That put me off a bit. When I tried his code, it was not
> clear to me where the output
> was going. So I tried . I ended up using  because I like reading
> Andy Wingo's blog and
> it just worked out of the box anyway.
> It was such fun! I've not quasiquoted so deeply before. I'm still
> tinkering with the script - I use
> it to see how my hetrogeneous overnight builds got on.
> code here:
> results here:
> (Incidentally, the FC3 build seems to fail because guile-gtk-2.1 fails
> to build (it fails in make, not
> configure. Is guile-gtk-2.1 supposed to work on gtk+-2.4? ... not
> completely the right place to
> ask, I guess).
> I have a question about the output. How do I put line breaks into the
> generated text? All on one
> line is fine for my browser - but makes it hard to eyeball the HTML.
> After I wrote it (and saw how concise the sxml translator was), I though
> "so what's all the fuss
> about PHP?" One of the major things, perhaps, is the generation of
> images in-line. So I thought
> "couldn't guile+sxml do something similar making SVGs on the fly?" Is
> that being quietly coded
> up by someone? Making a few graphs on the fly shouldn't be so hard,
> should it? In fact, I was
> even thinking of doing it myself :)
<lilo> Fairlight: udp is the light margarine of tcp/ip transport protocols :)
-- Seen on #Linux