[Laszlo-dev] designing API which is LZX friendly
andJavascript-friendly
Don Hopkins
dhopkins at DonHopkins.com
Mon Nov 28 21:04:50 PST 2005
Oh yeah? Well not only do I hate XSLT, but it hates me back! ;-(
Once upon a time Microsoft tricked me into using their non-standard
JavaScript extension to XSLT (so you could embed JavaScript in XSLT to
actually get some work done via DOM), which gave me the illusion that it
was actually possible to awkwardly work around XSLT's limitations, but
of course it wasn't standard and it just stopped working one day.
My theory about XSLT is that the committee must have had a Lisp person
and a Prolog person, each of whom was able to talk the committee into
adding a few token features of their favorite languages, but not enough
to actually make it useful, consistent and complete. It's such a train
wreck that you need to throw in an imperative language like JavaScript
just to make it useful!
I've been using the Kid template system for Python (part of TurboGears),
and it's an excellent Python scriptable XML based template language.
(Much better than TAL/TALES/METAL, and very pythonic) It's based on
Python generators, so it's quite elegant, and can efficiently stream
large documents.
http://kid.lesscode.org <http://kid.lesscode.org/>
-Don
-----Original Message-----
From: laszlo-dev-bounces at openlaszlo.org
[mailto:laszlo-dev-bounces at openlaszlo.org] On Behalf Of Henry Minsky
Sent: Monday, November 28, 2005 1:00 PM
To: Max Carlson
Cc: Jim Grandy; laszlo-dev
Subject: Re: [Laszlo-dev] designing API which is LZX friendly
andJavascript-friendly
You can't hate it as much as I do.
On 11/28/05, Max Carlson <max at laszlosystems.com> wrote:
Remember, we now have a CSS preprocessing phase on the server. I've
been advocating an XSLT transformation phase for both LZX and
LPS-proxied data for a while. But I _hate_ xslt syntax...
-Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openlaszlo.org/pipermail/laszlo-dev/attachments/20051128/fade9d12/attachment.html
More information about the Laszlo-dev
mailing list