* Brion Vibber <brion(a)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