Newsgroups: comp.lang.scheme
Path: cantaloupe.srv.cs.cmu.edu!rochester!udel!news.mathworks.com!newsfeed.internetmci.com!in1.uu.net!world!sgmlsh
From: sgmlsh@world.std.com (Sam Hunting)
Subject: Re: [LONG] soliciting opinion
Message-ID: <DsDo5z.E41@world.std.com>
Organization: The World Public Access UNIX, Brookline, MA
References: <4opgaf$6k5@news0-alterdial.uu.net>
Date: Sun, 2 Jun 1996 14:56:22 GMT
Lines: 27

>Each HTML `TAG' is actually an n-ary procedure (where the options are
>passed in) that returns an n-ary procedure (that takes the contents of
>the HTML container).  The advantage of using procedures is that you
>can define higher order tags either to match the moving target of HTML
>specs or to define tags such as (HTML-STANDARD-PAGE) that would,
>for instance, place copyright notices, etc, at the bottom.

I don't understand why you are handcrafting functions for the HTML tags. 
Wouldn't it make more sense to take the SGML DTD for whatever flavor of 
HTML you are working with as input, and have Scheme interpret the input 
in such a manner as to at least generate a code skeleton for your 
program? (I say skeleton because associating behaviors with SGML elements 
probably needs a human decision maker.) If you don't want to deal with 
the DTD directly, then use the output of a validating parser such as 
James Clark's nsgmls as your input.

Hope this helps.

For SGML pointers, see:

http://www.sil.org/sgml/sgml.html

-- 
<!-- 
  "To imagine a language is to imagine a form 
   of life."                   - Wittgenstein,
                 Philosophical Investigations
