Re: SXML in Emacs
Terrence Brannon <[email protected]> Fri, 16 Jul 2004 10:18:02 -0400
| Newsgroups | gmane.lisp.scheme.ssax-sxml |
|---|---|
| Message-ID | <[email protected]> |
Oliver Scholz wrote:
>
>
>So, when using SXML in Scheme, do people treat an SXML document as a
>list of lists? Or is this considered bad style and they hide the list
>structure behind accessor functions?
>
>
>
Every example I've seen of SXML use works with raw SXML, not via
accessor functions. You can visit Oleg's website
http://okmij.org/ftp/Scheme/xml.html
and see countless examples and publications supporting this.
You might save yourself a lot of time if you developed a bidirectional
calling interface between Emacs and a Scheme.
I suggest Xemacs and PLT Scheme.
--
(let recur ((lis x) (k k))
(if (zero? k) (values '() lis)
(receive (prefix suffix) (recur (cdr lis) (- k 1))
(values (cons (car lis) prefix) suffix)))))
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click