Lisp's syntax can be used to express the structure of SGML/XML-based documents very concisely:
Foo this is a paragraph
Becomes
(:doc (:heading "Foo") (:para "This is a paragraph"))
Because Lisp is also a programming language it is possible to mingle Lisp code and SGML/XML markup in Lisp syntax to programmatically generate documents.
In order to do this `right' for XML you need to deal with
issues of Unicode, case, namespaces and so on. But almost all
documents don't need to worry about this complexity. This code
provides a simple way to mix HTML markup with Lisp code. It does
not enforce anything except the matching of tags, so it knows
nothing about document types or anything like that. In fact the
only thing you need to tell it is which elements have empty
content models, so it generates rather than
.
Page in this topic: HTML-from-sexpr
Also linked from: Eduardo Muņoz Lisp Markup Languages scribble
CLiki pages can be edited by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively