November 17, 2005
Lx

Lx is Norman Gray's SAX-compatible reader for an sexpr-based XML syntax.

Another way of looking at this is that Lx provides a notation for XML in lisp-style sexps, similar in some ways to SXML, though that's mostly concerned with going the other way. Or, put yet another way, this is a sexp-to-SAX converter in Java.

Here's the XSLT identity transformation:

;; The XSLT identity transformation
(lx:namespace ((#f "http://www.w3.org/1999/XSL/Transform"))
  (stylesheet version: 1.0
    (template match: "node()|@*"
      (copy
        (apply-templates select: "@*|node()")))))

This is pure XSLT, and would be accepted as such by any XSL transformation engine which allows you to plug in an alternative parser.

Posted by jjwiseman at November 17, 2005 01:31 PM
Comments

XSLT - being a functional language - is a natural fit for transforming XML in Lisp. Unfortunately, it reads more like a giant switch clause than like a program.

Posted by: Chui Tey on November 17, 2005 05:00 PM
Post a comment
Name:


Email Address:


URL:




Unless you answer this question, your comment will be classified as spam and will not be posted.
(I'll give you a hint: the answer is “lisp”.)

Comments:


Remember info?