From: Dido Sevilla Date: 2006-12-07T17:52:19+09:00 Subject: Re: Using Relax NG as a grammar On 12/7/06, Giles Bowkett wrote: > > syntax tree, what have you got? You could output the syntax tree into > > Lisp S-Expressions, which are isomorphic to XML in a very real way. It > > Sorry if this is madness, but does that mean it is theoretically > possible to implement Lisp as XML? Yes, it is madness, and yes, unfortunately, it has been done. There's that language called XSLT which you may remember... Frankly, I find S-Expressions far easier to read than XML, so much so that I actually wrote a small utility once upon a time to convert S-expression input into XML output (and I did it mainly to make XSLT programs I once wrote when I was experimenting with it easier to read! I don't have the code anymore, but I remember that it wasn't difficult to do with Ruby). There's also this little project: http://weitz.de/cl-who/ that generates HTML/XML from Common Lisp.