-----Original Message----- From: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] On Behalf Of Dmitriy Sintsov Sent: 03 July 2009 07:48 To: Wikimedia developers Subject: Re: [Wikitech-l] On templates and programming languages
- Brion Vibber brion@wikimedia.org [Thu, 02 Jul 2009
10:18:14 -0700]:
Aryeh Gregor wrote:
I was assuming it would just return wikitext, and that would be integrated into the page and parsed, following all limits on
wikitext
(including size) -- just as with current parser functions.
That's one simple way to implement, but we may wish to consider
working
with a document tree structure instead to help future-proof
it against
future syntax changes (or dropping out the wiki syntax entirely).
Things
to consider... :)
SLAX http://code.google.com/p/libslax/ (provided by Gregory Maxwell) looks like really good thing for document tree manipulation and as the people have pointed out, XSLT is simle to limit (lock the recursion down). It's compact and more easily readable comparing to "normal" xslt. I remember that PHP has some standard module for XSLT transformations, I wonder whether it's simple to convert SLAX->XSLT then use PHP XSLT transformation. Dmitriy
Think something like ESI language (http://www.w3.org/TR/esi-lang but without the HTTP requests) would be preferable to XSLT. If was going the XML route.
Jared