LAML(ID:4039/lam008)


for Lisp Abstracted Markup Language

Scheme with access to libraries which mirror HTML

2001


Related languages
HTML => LAML   Extension of
Scheme => LAML   Extension of

References:
  • Nørmark, Kurt "LAML Background" 2002 view details Extract: tML
    In order to use Scheme for CGI programming it was necessary to generate text with HTML markup. Therefore I implemented a simple library of functions, which where able to to so. I only implemented the functions that I actually needed. One function for each HTML tag, in order to be able to mirror HTML as close as possible. This is today the html.scm library (manual), which now is completely obsolete.
    It soon became clear that this ad hoc approach was inappropriate - and almost never ending. Therefore I generated a set of functions given a list of single tags and a list of double tags. This is the html-v1.scm library ( manual ) - also now completely obsolete.

    It turned out to be difficult to tune the list of HTML mirror functions to be in accord with the HTML standard - at that time HTML4.0. The next natural step was therefore to extract the information about HTML from the Document Type Definition (DTD). I searched for a good and convenient representation of the HTML DTD, but could not find one. As a consequenced I wrote an ad hoc parser via which I was able to extract all information about HTML4.0, as well as other versions of course. On this ground I constructed an exact mirror of HTML in Scheme, which included attribute checking, assured well-formedness, but no document validation.


    Resources