The project under http://common-lisp.net/project/cl-quasi-quote/ might
seem to be yet another XML emitting library for the first sight but it
is clearly more than that.
Certainly cl-quasi-quote can be used to emit XML content but the goal
is to actually be able to emit any other domain that consist of
constant and variable parts nested into each other.
It already supports string, binary, bivalent, XML and some kind of
simplistic typesetting. These domains can be transformed into each
other (clearly not all combinations make sense) and finally to very
efficient lisp code.
There is a detailed example (with explanation) on the web site which
provides CLOS class inspection on the web using UCW.
The cl-rdbms project does similar things with SQL by partially
compiling them to strings and it might eventually be ported to cl-
quasi-quote. Besides our future plans include Javascript, pdf and
other support, feel free to help us. :-)
So if your program wants to output some generated pdf the code itself
might be as efficient as directly emitting literal byte vectors to the
output stream mixed with some dynamic content...
levy