From: Andy Wingo <wingo@pobox.com>
To: joakim@verona.se
Cc: emacs-devel@gnu.org
Subject: Re: whats the Emacsy way to xsltish tasks?
Date: Fri, 20 May 2011 11:28:05 +0200 [thread overview]
Message-ID: <m38vu1yb4q.fsf@unquote.localdomain> (raw)
In-Reply-To: <m3sjsa5m6y.fsf@verona.se> (joakim@verona.se's message of "Fri, 20 May 2011 01:01:57 +0200")
On Fri 20 May 2011 01:01, joakim@verona.se writes:
> I have an elisp prog that builds an SVG image by using macros to create
> xslt that then transforms an SVG to create another SVG. The solution
> works but feels a bit humiliating. Why fork out to xsltproc, when xml is
> lisp with brackets?
>
> Now I have a couple of similar projects, and I'd like to try some
> different solution. Regexp matching is worse on these cases than forking
> out to xsltproc, so the alternative is to parse the xml with the new
> libxml wrapper, and transform it in Elisp. But since these are randomly
> deep structures Elisp might die from stack asphyxiation during recursion.
>
> So what to do then? Implement tail elimination? wrap libxslt? Some other
> embarassingly obvious solution I've missed?
See Oleg Kiselyov's "pre-post-order" transformation combinator. He
wrote a few papers on it.
Andy
--
http://wingolog.org/
prev parent reply other threads:[~2011-05-20 9:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-19 23:01 whats the Emacsy way to xsltish tasks? joakim
2011-05-20 9:28 ` Andy Wingo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m38vu1yb4q.fsf@unquote.localdomain \
--to=wingo@pobox.com \
--cc=emacs-devel@gnu.org \
--cc=joakim@verona.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).